Reputation: 2180
Hello friends i trying to set Google Map
as a background of the web page like this
. I m noticing in this site that the map which is used by this site has no arrows and plus minus icons on it. i don't know how to get this kind of code of Google Map
. I trying to do the same but there on google map page no option to delete these features
Please help me
any help would be appreciated
Thanks in advance
Upvotes: 0
Views: 2269
Reputation: 5788
There are certain options for the map that you can disable when initializing your map. You can find a list of these map options in Google Maps API Reference: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
To get just a bare map, you'll probably have to do something like this for your map options:
var myOptions = {
zoom: (specify zoom level),
center: (your map's center),
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDoubleClickZoom: false,
draggable: false,
overviewMapControl: false,
panControl: false,
scrollwheel: false,
streetViewControl: false,
zoomControl: false,
mapTypeControl: false
}
Upvotes: 1