diff --git a/documentation/docs/demos/01-simple-map.html b/documentation/docs/demos/01-simple-map.html new file mode 100644 index 0000000..797679b --- /dev/null +++ b/documentation/docs/demos/01-simple-map.html @@ -0,0 +1,86 @@ + + + + Simple map | Shakemap + + + + + + + + + +
+ + + + +
+
+

Simple map

+ back to documentation +
+
+
+
+
+          
+            jQuery('#map').shakemap({
+              data:'simple.json'
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/02-map-with-infobox.html b/documentation/docs/demos/02-map-with-infobox.html new file mode 100644 index 0000000..bffcb8f --- /dev/null +++ b/documentation/docs/demos/02-map-with-infobox.html @@ -0,0 +1,97 @@ + + + + Map with Infobox | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with Infobox

+ back to documentation +
+
+
+
+
+          
+            var infobox = {
+              offset:[-225,-100],
+              width:"215px",
+              height:"166px",
+              background:"images/infobox_bg.png",
+              closeBoxMargin:"5px 25px 0 0",
+              closeBoxURL:"images/infobox_close_bg.png"
+            };
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              action:'infobox',
+              infoboxSettings:infobox
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/03-map-with-direct-click.html b/documentation/docs/demos/03-map-with-direct-click.html new file mode 100644 index 0000000..a3e27fc --- /dev/null +++ b/documentation/docs/demos/03-map-with-direct-click.html @@ -0,0 +1,90 @@ + + + + Map with direct link | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with direct click

+ back to documentation +
+
+
+
+
+          
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              action:'direct',
+              markerClick:function(marker){
+                alert("You have clicked on the marker!");
+              }
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/04-map-with-no-click.html b/documentation/docs/demos/04-map-with-no-click.html new file mode 100644 index 0000000..6b143d2 --- /dev/null +++ b/documentation/docs/demos/04-map-with-no-click.html @@ -0,0 +1,87 @@ + + + + Map with no click | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with no click!

+ back to documentation +
+
+
+
+
+          
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              action:null
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/05-map-with-custom-map-options.html b/documentation/docs/demos/05-map-with-custom-map-options.html new file mode 100644 index 0000000..eba6380 --- /dev/null +++ b/documentation/docs/demos/05-map-with-custom-map-options.html @@ -0,0 +1,95 @@ + + + + Map with custom mapOptions | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with custom mapOptions

+ back to documentation +
+
+
+
+
+          
+            var mapOptions = {
+              backgroundColor:"#474F58",
+              mapTypeControl:false,
+              overviewMapControl:false,
+              panControl:false,
+              scrollwheel:false,
+              zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL}
+            };
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              mapOptions:mapOptions
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/06-custom-icons.html b/documentation/docs/demos/06-custom-icons.html new file mode 100644 index 0000000..c1bb3e7 --- /dev/null +++ b/documentation/docs/demos/06-custom-icons.html @@ -0,0 +1,97 @@ + + + + Custom icons | Shakemap + + + + + + + + + +
+ + + + +
+
+

Custom icons

+ back to documentation +
+
+
+
+
+          
+            var icons = {
+              field_name:"icon",
+              options:{
+                'skmap':'images/icon.png'
+              },
+              size:[64,64],
+              origin:[0,0],
+              anchor:[32,64]
+            };
+            
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              categoryIcons:icons
+            });
+          
+        
+
+          
+            //geoJSON example
+          {
+            "type":"FeatureCollection",
+            "features":
+              [
+                {
+                  "type":"Feature",
+                  "geometry":{
+                    "type":"Point",
+                    "coordinates":[13.532209,45.804991]
+                  },
+                  "properties":{
+                    "name":"Monfalcone",
+                    "description":"Simple marker"
+                  }
+                }
+              ]
+            }
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/07-map-with-spider.html b/documentation/docs/demos/07-map-with-spider.html new file mode 100644 index 0000000..1a34bea --- /dev/null +++ b/documentation/docs/demos/07-map-with-spider.html @@ -0,0 +1,66 @@ + + + + Map with OverlappingMarkerSpiderfier | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with OverlappingMarkerSpiderfier

+ back to documentation +
+
+
+
+
+          
+            jQuery('#map').shakemap({
+              data:'spider.json',
+              spider:true
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/08-map-with-sidebar.html b/documentation/docs/demos/08-map-with-sidebar.html new file mode 100644 index 0000000..d74d8db --- /dev/null +++ b/documentation/docs/demos/08-map-with-sidebar.html @@ -0,0 +1,77 @@ + + + + Map with sidebar | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with sidebar

+ back to documentation +
+
+ + +
+
+
+          
+            jQuery.getJSON('sidebar.json', function(data){
+              jQuery('#map-small').shakemap({
+                data:data,
+                sidebar:{
+                  active:true,
+                  mid:"nid",
+                  target:"#sidebar"
+                }
+              });
+              
+              for(var i = 0; i < data.features.length; i++){
+                jQuery('#sidebar').append(data.features[i].properties.description);
+              }
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/09-clusterer.html b/documentation/docs/demos/09-clusterer.html new file mode 100644 index 0000000..3ca39bf --- /dev/null +++ b/documentation/docs/demos/09-clusterer.html @@ -0,0 +1,87 @@ + + + + Clustering | Shakemap + + + + + + + + + +
+ + + + +
+
+

Clusterer options

+ back to documentation +
+
+
+
+
+          
+            var icons = {
+              field_name:"icon",
+              options:{
+                'skmap':'images/icon.png'
+              },
+              size:[64,64],
+              origin:[0,0],
+              anchor:[32,64]
+            };
+            
+            var clusterStyles = [{
+              url: 'images/cluster.png',
+              height: 64,
+              width: 64,
+              anchor: [0, 0],
+              textColor: '#ffffff',
+              textSize: 13
+            }];
+            
+            jQuery('#map').shakemap({
+              data:'clustering.json',
+              categoryIcons:icons,
+              clusterer:{
+                style:clusterStyles
+              }
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/10-map-with-custom-style.html b/documentation/docs/demos/10-map-with-custom-style.html new file mode 100644 index 0000000..6ecf97c --- /dev/null +++ b/documentation/docs/demos/10-map-with-custom-style.html @@ -0,0 +1,118 @@ + + + + Map with custom style | Shakemap + + + + + + + + + +
+ + + + +
+
+

Map with custom style

+ back to documentation +
+
+
+
+
+          
+            var mapStyle = [
+              {
+                "featureType":"road.local",
+                "stylers":[
+                  {
+                    "color":"#ffffff"
+                  }
+                ]
+              },
+              {
+                "featureType":"water",
+                "stylers":[
+                  {
+                    "color":"#3fc6f3"
+                  }
+                ]
+              },
+              {
+                "featureType":"landscape",
+                "stylers":[
+                  {
+                    "color":"#46d7c6"
+                  }
+                ]
+              },
+              {
+                "featureType":"road.highway",
+                "elementType":"geometry",
+                "stylers":[
+                  {
+                    "color":"#ffffff"
+                  }
+                ]
+              },
+              {
+                "featureType":"poi",
+                "elementType":"geometry",
+                "stylers":[
+                  {
+                    "color":"#b1d8d3"
+                  }
+                ]
+              },
+              {
+                "featureType":"road.arterial",
+                "stylers":[
+                  {
+                    "color":"#d8e0e9"
+                  }
+                ]
+              }
+            ];
+            
+            jQuery('#map').shakemap({
+              data:'simple.json',
+              mapStyle:mapStyle
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/11-update-map.html b/documentation/docs/demos/11-update-map.html new file mode 100644 index 0000000..9915957 --- /dev/null +++ b/documentation/docs/demos/11-update-map.html @@ -0,0 +1,72 @@ + + + + Update a map | Shakemap + + + + + + + + + +
+ + + + +
+
+

Update a map

+ back to documentation +
+
+ update +
+
+
+          
+            jQuery('#map').shakemap({
+              data:'simple.json'
+            });
+            
+            jQuery('#update').click(function(){
+              jQuery('#map').shakemap('update', {
+                data:'sidebar.json'
+              });
+              return false;
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/12-destroy-map.html b/documentation/docs/demos/12-destroy-map.html new file mode 100644 index 0000000..3f927b9 --- /dev/null +++ b/documentation/docs/demos/12-destroy-map.html @@ -0,0 +1,70 @@ + + + + Destroy a map | Shakemap + + + + + + + + + +
+ + + + +
+
+

Destroy a map

+ back to documentation +
+
+ destroy +
+
+
+          
+            jQuery('#map').shakemap({
+              data:'simple.json'
+            });
+            
+            jQuery('#destroy').click(function(){
+              jQuery('#map').shakemap('destroy');
+              return false;
+            });
+          
+        
+
+
+
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/docs/demos/clustering.json b/documentation/docs/demos/clustering.json new file mode 100644 index 0000000..b2410c8 --- /dev/null +++ b/documentation/docs/demos/clustering.json @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[7.485322,44.616931]},"properties":{"name":"SCENE CORTESI AL CASTELLO DELLA MANTA","description":"

SCENE CORTESI AL CASTELLO DELLA MANTA

","nid":147,"icon":"skmap"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.686409,45.070417]},"properties":{"name":"PALAZZO MADAMA, LE COLLEZIONI DI ARTI DECORATIVE","description":"

PALAZZO MADAMA, LE COLLEZIONI DI ARTI DECORATIVE

","nid":151,"icon":"skmap"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.678459,45.054366]},"properties":{"name":"LA CERAMICA LENCI TRA ARTE E GIOCO","description":"

LA CERAMICA LENCI TRA ARTE E GIOCO

","nid":150,"icon":"skmap"}}]} \ No newline at end of file diff --git a/documentation/docs/demos/images/cluster.png b/documentation/docs/demos/images/cluster.png new file mode 100644 index 0000000..83730c7 Binary files /dev/null and b/documentation/docs/demos/images/cluster.png differ diff --git a/documentation/docs/demos/images/icon.png b/documentation/docs/demos/images/icon.png new file mode 100644 index 0000000..7c1ef7f Binary files /dev/null and b/documentation/docs/demos/images/icon.png differ diff --git a/documentation/docs/demos/images/infobox_bg.png b/documentation/docs/demos/images/infobox_bg.png new file mode 100644 index 0000000..bfb8db2 Binary files /dev/null and b/documentation/docs/demos/images/infobox_bg.png differ diff --git a/documentation/docs/demos/images/infobox_close_bg.png b/documentation/docs/demos/images/infobox_close_bg.png new file mode 100644 index 0000000..92653ce Binary files /dev/null and b/documentation/docs/demos/images/infobox_close_bg.png differ diff --git a/documentation/docs/demos/images/user.png b/documentation/docs/demos/images/user.png new file mode 100644 index 0000000..0c010b7 Binary files /dev/null and b/documentation/docs/demos/images/user.png differ diff --git a/documentation/docs/demos/sidebar.json b/documentation/docs/demos/sidebar.json new file mode 100644 index 0000000..edb2e9e --- /dev/null +++ b/documentation/docs/demos/sidebar.json @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[7.485322,44.616931]},"properties":{"name":"SCENE CORTESI AL CASTELLO DELLA MANTA","description":"

SCENE CORTESI AL CASTELLO DELLA MANTA

","nid":147,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.678459,45.054366]},"properties":{"name":"L'INGANNO DEL BELLO. FALSO E IMITAZIONE NELL'ARTE","description":"

L'INGANNO DEL BELLO. FALSO E IMITAZIONE NELL'ARTE

","nid":145,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.636461,43.724113]},"properties":{"name":"Luca Bellandi - MUSE","description":"

Luca Bellandi - MUSE

","nid":146,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[11.937636,44.770288]},"properties":{"name":"II° Premio Nazionale di Pittura 'P. Occhi' | EXEMPLO ESSE","description":"

II° Premio Nazionale di Pittura 'P. Occhi' | EXEMPLO ESSE

","nid":144,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.614342,42.051208]},"properties":{"name":"Ricordando Guido. Mostra antologica di Guido Aloise","description":"

Ricordando Guido. Mostra antologica di Guido Aloise

","nid":149,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.678459,45.054366]},"properties":{"name":"LA CERAMICA LENCI TRA ARTE E GIOCO","description":"

LA CERAMICA LENCI TRA ARTE E GIOCO

","nid":150,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.686409,45.070417]},"properties":{"name":"PALAZZO MADAMA, LE COLLEZIONI DI ARTI DECORATIVE","description":"

PALAZZO MADAMA, LE COLLEZIONI DI ARTI DECORATIVE

","nid":151,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[14.405755,42.356643]},"properties":{"name":"LVII Premio Basilio Cascella 2013 | £'i®a - arte, sogno, giogo, rabbia","description":"

LVII Premio Basilio Cascella 2013 | £'i®a - arte, sogno, giogo, rabbia

","nid":152,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[9.176760,45.464782]},"properties":{"name":"Street D'Ars","description":"

Street D'Ars

","nid":153,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[7.693040,45.066303]},"properties":{"name":"Omaggio a Fontanesi","description":"

Omaggio a Fontanesi

","nid":154,"nothing":"test"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.893554,46.111029]},"properties":{"name":"avveduti . nessuno è profeta in patria","description":"

avveduti . nessuno è profeta in patria

","nid":155,"nothing":"test"}}]} \ No newline at end of file diff --git a/documentation/docs/demos/simple.json b/documentation/docs/demos/simple.json new file mode 100644 index 0000000..42751ea --- /dev/null +++ b/documentation/docs/demos/simple.json @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[13.532209,45.804991]},"properties":{"name":"Monfalcone","description":"

Simple marker

Risus Parturient Pellentesque

","icon":"skmap"}}]} \ No newline at end of file diff --git a/documentation/docs/demos/spider.json b/documentation/docs/demos/spider.json new file mode 100644 index 0000000..3158694 --- /dev/null +++ b/documentation/docs/demos/spider.json @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[12.37602,45.684275]},"properties":{"name":"Marker 1","description":"

Marke 1

Risus Parturient Pellentesque

"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.37602,45.684275]},"properties":{"name":"Marker 2","description":"

Marker 2

Risus Parturient Pellentesque

"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.37602,45.684275]},"properties":{"name":"Marker 3","description":"

Marke 3

Risus Parturient Pellentesque

"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[12.37602,45.684275]},"properties":{"name":"Marker 4","description":"

Marker 4

Risus Parturient Pellentesque

"}}]} \ No newline at end of file diff --git a/documentation/docs/index.html b/documentation/docs/index.html index f80f109..adab1b9 100644 --- a/documentation/docs/index.html +++ b/documentation/docs/index.html @@ -133,6 +133,11 @@

Settings

function(marker){}
function. The function used when action is set to direct. The parameter marker cotains the marker object that clicking in this moment. + + autoOpen +
false
+ boolean. Open automatically a marker, ONLY if there is only one marker in the map. + spider
false
diff --git a/documentation/js/docs.js b/documentation/js/docs.js new file mode 100644 index 0000000..0901a68 --- /dev/null +++ b/documentation/js/docs.js @@ -0,0 +1,3 @@ +jQuery(function(){ + +}) \ No newline at end of file diff --git a/documentation/js/infobox.js b/documentation/js/infobox.js old mode 100755 new mode 100644 diff --git a/documentation/js/markerclusterer.js b/documentation/js/markerclusterer.js old mode 100755 new mode 100644