Core options


Create button

          
<button id="FindMeButtonID"> </button>
      

Settings for change

        
    settings = {
      type: "Basic", 
      apiKey: 'YOUR_API_KEY',
      center: {
          lat: 40.300,
          lng: 48.800
      },
      findMe: true,
      findMeButton: 'FindMeButtonID',
      result : function(address,lat,lng,error) {
          console.log("Formatting address: "+address);
          console.log("latitude: "+lat);
          console.log("longitude: "+lng);
          console.log("Error: "+error)
      },
    }
   
Name Type Default Description
type string Basic

Set plugin type (Basic/AutoComplete)

apiKey string default

Get an API Key from the Google API Console

zoom int 8

Set zoom for map

mapTypeId string ROADMAP

More info on here

markerClick boolen false

Click marker on/off

autoComplete boolean false

AutoComplete on/off. More info on here

searchInput string default

Set search input id

result function 4 parametres

Result findMe or searchbox

icon string default

Set marker icon for map

cluster boolean false

Markerclusterer on/off. More info here

center(lat/lng) int 40.300/48.800

Set center for map

findMe boolean false

Geolocation on/off. More info here

findMeButton string default

Set button id

infoWindowMaxWidth int 200

Set infowindow max width

language string az

Set language for map

scrollwheel boolen false

scrollwheel on/off

streetViewControl boolean false

streetViewControl on/off

mapTypeControl boolean false

mapTypeControl on/off

overViewMapControl boolean false

overViewMapControl on/off