KML / Google Map - indicating the zoom level of the embedded map in iFrame

I have the following kml file that I upload on a Google map and it places the pointer correctly, but it always increased at the maximum level.

Using google APIs, I can set my own zoom level, but I'm trying to do this using the built-in map in iFrame (provided by Google).

Is there a way to set the zoom level in kml itself? I looked at the LookAt and Camera attributes, but the document said they were not supported on Google Map.

Thanks!

<?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.1">  
        <Placemark>
            <Point>
                <coordinates>144.897426,-37.8045</coordinates>
            </Point>
        </Placemark>
    </kml>
+3
source share
1 answer

Google , src iframe - , "z" - .

iframe " http://maps.google.com/?ll=48.064372,16.348977&z=10" z = 10 ( 20) ( 0)

, API setCenter(),

+6

Source: https://habr.com/ru/post/1722154/


All Articles