Kamal
Kamal

Reputation: 2180

Delete arrow from google map

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

Answers (2)

Suvi Vignarajah
Suvi Vignarajah

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

Neji
Neji

Reputation: 6839

there's the demo code to do the map that you want. visit here you will have to change the parameters such as center and zoom level. then you can achieve the map as you have shown in the question. for documentation plz refer this

Upvotes: 1

Related Questions