I generate a tree of folders with Admin1 and Admin2, which contain placemarks. When a folder is selected in Earth, I'd like to move to a box/altitude so that all the placemarks in that Admin level are visible.
Is there a way to do this with KML?
Looks like double clicking on the folder in Earth does exactly what I want.
Related
My Image Please Click
How to change the icon in red line? Is possible to change it with PNG Picture??
I see the code is defined by pathdata,and I don't know the pathdata came from?
How I can make a "link" to a new .xml files? example , if I click the import,the system must be redirect to a.xml, if I click the slideshow menu, so system must redirect to b.xml??
thankyou everybody, and sorry im new in Android development
1.Just import the pictures you want in the folder /res/drawable for example and replace them with the original one in your xml code by specifying the path (#/drawable/mypicture). You can use PNG, JPG, and almost every format and pathdata surely is a predefined path containing thos pictures.
2.You can create new XML file in the folder /res/layout for example (you can also create personnal folders, it will work too) and then inside your application you can use : setContentView(R.layout.myview)
, to use your personnal XML if it is in the layout folder.
Is there a way to get an overlay of some kind to open in GE when the user loads my kml?
I want to add a splash screen with a disclaimer on it and i want to be sure each user sees it.
The overlay would appear as the kml is opened in GE and they would click to dismiss it.
Is this possible?
Try using CDATA for the description of the top-level object in your KML file (eg Doc or Folder). This will pop up as a balloon when user adds KML file to Google Earth.
If you're working with NetworkLinks, you could add the overlay when the NetworkLink first loads, then set refresh to occur a short time later (eg 5 seconds) which returns an Update with a to remove the Overlay.
I have a document with many placemarks. Each placemark is a bicycle station, and I have to show how many bikes are in the station. Is there a way to add text to the placemark icon?
(I'm aware I can put this data in the balloon, but I really need to add this to the Icon)
Thanks,
Ami
I think the easiest way would be to change the icon file you are pointing to based on the number of bicycles at that location. You could use icons like these a MapIcons http://mapicons.nicolasmollet.com/numbers-letters/
The general answer is KML supports LabelStyle which allows you to style the displayed.
The other option is to create custom markers with the numbers associated with them.
Other options would depend on how you are displaying the kml.
I'm drawing the path of a ship sailing around the world, using a series of kml files, each containing multiple placemarks.
When I click on the last visible placemark, I DO NOT want to open a ballon containing text and a URL to the next file. Instead, I'd like GE to load and "flyto" the kml file that contains the next series of placemarks. So far, I haven't found a way to do this, so I'm wondering if it's possible. If so, how to? Thanks, John
I'm assuming you're using KML in Google Earth. KML doesn't have an "onclick" method for Placemarks like this, when you click on a placemark, it opens up a balloon if there is one to be opened. If you want something more guided, you can do a tour or you can open up a balloon that has a link with a ;flyto method added that takes you to a particular Placemark.
Where I need to mention the icon 'XX.ico' path in the below method.
Right now a icon is created on desktop with some image(XY.ico) corresponding to folder icon
Now I need to change that image(XY.ico). New image icon has to be place for the same folder icon.
AddFolderIcon (szProgramFolder, szItemName, szCommandLine,
szWorkingDir,
szIconPath, nIcon, szShortCutKey, REPLACE)
If I follow the question, the szIconPath argument is where you'll want to point to your icon file.