I am working on google maps application and I have data in KML file of 1 area. I can successfully add the layer to map when a button is pressed, Now I am searching a way to add the layer when a user viewing that area at a particular zoom level. I can able to add a layer at a particular zoom level that I want but I am unable to find a way to add a layer when an area is visible on the map any help or sample code will be useful for me. Thanks in Advance
Asked
Active
Viewed 230 times
1 Answers
0
You can get the current area of map displayed on screen and show your layer accordingly.
Step 1 : Get the total area of map covered on current screen. You can get the region by using this link.
Step 2 : Get all the marker latitude and longitude from kml and check whether that exists between region bounds of step 1.
Step 3 : If there exists the latitude and longitude then simply draw a marker on the map.

R G
- 461
- 3
- 15