Core options
Default config for near places
You can changed when near_places init
map_near.near_places({
'mapOptions': {
'zoom' : 10,
}
});
Settings for change
settings = {
'places': {
'health': {
'icon': 'img/hospital.png',
'type': 'hospital,health',
'title': 'Health',
},
},
'mapOptions': {
'zoom': '15',
'mapTypeId': 'ROADMAP',
'scrollwheel': false,
'styles': '',
'radius': '2000',
'default_place_id': '4',
}
}
Name | Type | Default | Description |
---|---|---|---|
zoom | int | 15 |
Set zoom for map |
mapTypeId | string | ROADMAP |
More info on here |
styles | object | default |
More info on here |
scrollwheel | boolen | false |
scrollwheel on/off |
radius | int | 2000 |
radius for search places around marker |
default_place_id | int | 4 |
Default places type id |
places[..].icon | string | deafult |
link for icon of place |
places[..].type | string | deafult |
type of place, more info here |
places[..].title | string | deafult |
title for place |