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.

created issue in issue tracker: issue 10090: bug: document requirement zoom integer value


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -