-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.js
34 lines (31 loc) · 1.52 KB
/
init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require(EasyMapModules,function(){
require(['EasyMap'],function(EasyMap){
// customize your map options
var mapOptions = {
zoom: 6,
center: new google.maps.LatLng(45.58329, 9.140625),
mapTypeControl: false,
navigationControl:true,
panControlOptions:{
position: google.maps.ControlPosition.TOP_RIGHT
},
zoomControlOptions:{
position: google.maps.ControlPosition.TOP_RIGHT
},
maxZoom:19,
minZoom:2,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false,
disableDefaultUI: false
// styles: [{featureType:"all",elementType:"all",stylers:[{saturation:-100}]}]
};
/*how we should create a condition for marker's icons */
var markersIconCondition = {
// column:'store_type_id',
// values:[]
};
markersIconCondition.icon = 'http://cdn3.yoox.biz/napapijri/wp-content/images/pin-2x.png?bust=' + (new Date()).getTime() +'';
filters = {};
EasyMap.init(mapOptions,markersIconCondition,filters,function(){});
});
});