Skip to content Skip to sidebar Skip to footer

How To Get The Current Country Of The View Area?

Following part of code delivers me the country where my marker (not draggable) is set … for (var i = 0; i < results[0].address_components.length; i++) { if (results[0].addre

Solution 1:

Are you looking for something like this:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?lat=43.797409&lng=27.904508&zoom=6&type=m&filename=http://www.geocodezip.com/geoxml3_test/world_countries_kml.xml

Uses geoxml3 to render a KML file. Detects the country polygons that are visible in the viewport and displays them in the sidebar.

Post a Comment for "How To Get The Current Country Of The View Area?"