问题
I will need to push about 200 KML google maps to 200 people.
The maps have each around 200-300 placemarks.
Every placemark is either, an account, potential account, or past account.
I am classifying each type of placemark with a different color pin.
I would like to know how the user can see only one type of pins at a time. I know we can do this by using FOLDERS
, but i think a better way would be to use LAYERS
.
The reason I think layers are better is because on mobile devices they are much easier to work with.
Can you point me to a simple example illustrating how to use multiple layers on the same KML file that can be viewed in google maps?
回答1:
Probably the simplest way to do this is to use FusionTablesLayers. You can import your KML files, then dynamically query for the data to display and dynamically style the information.
- FusionTableLayers
- Dynamic Styling of FusionTableLayers
You can import KML into Fusion Tables, then look at the FusionTablesLayer Wizard and/or the FusionTablesLayer Builder
来源:https://stackoverflow.com/questions/12166591/creating-a-custom-layer-for-kml-file-to-be-viewed-on-mobile-devices