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"
                  }
                }
              ]
            }