javascript - set zoom in google map -
i creating project using javascript. in project have integrated google map.the google map works successfully. problem when set zoom level below 2 gives me error.i want set zoom level below 2. here code:
<script src="https://maps.googleapis.com/maps/api/js?key=aizasydspoae1uhgq8hxk9mox3sazdedj5lslps&libraries=geometry,drawing"></script> var mapoptions = { zoom: 1.5, minzoom: 1.5, disabledefaultui: true, maptypecontrol: false, scrollwheel: false, navigationcontrol: false, maptypecontrol: false, scalecontrol: false, draggable: false, maptypeid: google.maps.maptypeid.hybrid, maptypecontroloptions: { style: google.maps.maptypecontrolstyle.horizontal_bar, position: google.maps.controlposition.top_center, }, disabledoubleclickzoom: true, center: new google.maps.latlng(0, 0) }
zoom needs integer value.
it doesn't state anywhere in the documentation can find, integer values work.
- related enhancement request in issue tracker: issue 9948: fractional zoom level(fine zoom)
- related issue in issue tracker: issue 694: bug: browsers not correctly report cursor position when @ fractional zoom levels (i.e. non whole number zoom such 8.9) via "mouse move" event.
- related issue in issue tracker: issue 695: bug: map.getlatlngbounds not return correct lat/long bounds map object @ fractional zoom levels
created issue in issue tracker: issue 10090: bug: document requirement zoom integer value
Comments
Post a Comment