简体   繁体   中英

Get smooth zoom-in and zoom-out in google map

I'm using maps.googleapis.com/maps/api/js?v=3.21 and displaying zoom slider using

    mapOptions.zoomControl = true;
    mapOptions.zoomControlOptions= {
       style:google.maps.ZoomControlStyle.LARGE
    };

Every thing work as expected. The only thing which does not look so great is the zoom-in and zoom-out using slider . Its not very smooth and it seems that I can zoom-in/zoom-out by discrete zoom levels and not continuous. But I can see that Google maps has a zoom slider which works in very smooth and continuous manner. How can I get the same effect in my application ?

Google maps work only with finite zoom level .

The zoom level is an integer and is directly related to the maps tile showed ..

alias for each zoom level the map tiles retrivied by google maps are determinated by a direct relation for the zoom level and the earth surface mapping.

THe only difference with the slide is the aspect and the fact you can change zoom level directly moving the slider..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM