I encountered a problem a couple of weeks ago. Our client had some customized kml data and want to load it in our system. As we know, when we placing our point, line or polygon on google earth, a name is always given and the format is
<name>xxx</name>.
com api has a function call setVisible which introduces a parameter called feature name, so this xxx can be used to set the specified feature on visible or invisible mode.
Yes...this function works well for any ASCII letters. For other characters like Chinese, the story is different.
If the language of google earth is english, this function works, otherwise, in some situations, this function fails.
The solution is: use xxx.kml instead of xxx as the name of the feature. It works for both english and non-english.
I consider it is a bug.
PS: it only occur in google earth client, the plugin version has no such problem so far.
分享到:
相关推荐
The goals are user control, ease of programming, tablet sharing, and tablet feature support. 2.1 User Control The user should be able to use and control the tablet in as natural and easy a manner as ...
class inheritance and visibility (shows items only from files #included directly or indirectly)! * Caching of result set of code-completion for speed-up. * New option "Execution/Parameters" (and ...
Browser and Feature Detection objjQuery.support objjQuery.browserdeprecated strjQuery.browser.versiondeprecated booljQuery.boxModeldeprecated Basic operations objjQuery.each( obj, fn( index, ...
4)....Added "--el_injectjcl", "--el_createjcl", and "--el_createdbg" command-line options for ecc32/emake to inject JEDI/JCL debug info, create .jdbg file, and create .dbg file (Microsoft debug format...
this.requestWindowFeature(Window.FEATURE_NO_TITLE); ``` 通过以上方法,你可以根据自己的需求灵活地处理Android Activity的"back"菜单响应和标题栏显示。在实际开发中,务必考虑到用户体验,确保操作流程的...
<activity android:name=".YourActivity" android:theme="@android:style/Theme.NoTitleBar"> ``` 或者在Activity的onCreate()方法中,通过以下代码隐藏标题栏: ```java requestWindowFeature(Window.FEATURE_...
在 Android 开发中,我们可以使用 android:visibility 属性来设置控件是否显示。这个属性有三个值:visible(显示)、invisible(显示黑背景条)和 gone(不显示)。在类中,可以使用 setVisibility 方法来设置控件...
在上述代码中,`requestWindowFeature(Window.FEATURE_NO_TITLE)`用于移除标题栏,而`getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);`则用于隐藏...
customTitleBar(getText(R.string.app_name).toString(), "hello world!!"); ``` `customTitleBar()`方法中,我们首先检查`customTitleSupported`是否为`true`,然后使用`getWindow().setFeatureInt()`方法设置...