How to remove a MapType from google map using Google Maps Javascript V3 API? -
here snippet using display google map on app using v3 javascript api.
var myoptions = { zoom: 15, maptypeid: google.maps.maptypeid.roadmap } var map = new google.maps.map(document.getelementbyid("map_canvas"), myoptions);
but map shows terrain, hybrid , satellite don't want. how remove controls map.
you can remove default ui
var mapoptions = { zoom: 15, maptypeid: google.maps.maptypeid.roadmap, disabledefaultui: true }; var map = new google.maps.map(document.getelementbyid("map_canvas"), mapoptions);
and can add own controls
or can add maptypecontrol: false
Comments
Post a Comment