-
Notifications
You must be signed in to change notification settings - Fork 12
Options
Dimitris Krestos edited this page May 30, 2017
·
10 revisions
$('#map_canvas').mapit({
latitude: 37.970996,
longitude: 23.730542,
zoom: 16,
type: 'ROADMAP',
scrollwheel: false,
marker: {
latitude: 37.970996,
longitude: 23.730542,
icon: '',
title: '',
open: false,
center: true
},
address: '',
styles: 'GRAYSCALE',
locations: [],
origins: []
});- Set the latitude of the map
- options: coord
$('#map_canvas').mapit({
latitude: 37.970996
});- Set the longitude of the map
- options: coord
$('#map_canvas').mapit({
longitude: 23.730542
});- Set the zoom level of the map
- options: number
$('#map_canvas').mapit({
zoom: 16
});- Set the map type
- options: ROADMAP, SATELLITE, HYBRID, TERRAIN
$('#map_canvas').mapit({
type: 'ROADMAP'
});- Enable/disable zoom by mouse wheel
- options: true, false
$('#map_canvas').mapit({
scrollwheel: false
});- Set the latitude of the main map
- options: coord
$('#map_canvas').mapit({
latitude: 37.970996
});- Set the longitude of the main map
- options: coord
$('#map_canvas').mapit({
longitude: 23.730542
});- Set the icon of the main marker
- options: image filename
$('#map_canvas').mapit({
icon: 'images/marker_red.png'
});