diff --git a/README.md b/README.md index d23fbaf..2003294 100644 --- a/README.md +++ b/README.md @@ -165,13 +165,11 @@ Optional properties include - **heatmap** - set heatmap options object see https://github.com/Leaflet/Leaflet.heat#reference - **clear** - layer name - to clear a complete layer and remove from layer menu -#### For example - -To switch layer, move map and zoom +#### To switch layer, move map and zoom msg.payload.command = {layer:"Esri Relief", lat:51, lon:3, zoom:10 }; -To draw a heavily customized Circle on a layer +#### To draw a heavily customized Circle on a layer msg.payload.command = { name:"circle", @@ -185,7 +183,7 @@ To draw a heavily customized Circle on a layer clickable:true }; -To add a new base layer +#### To add a new base layer msg.payload.command.map = { name:"OSMhot", @@ -193,7 +191,7 @@ To add a new base layer opt:{ maxZoom:19, attribution:"© OpenStreetMap" } }; -To add a new geoJSON overlay +#### To add a new geoJSON overlay msg.payload.command.map = { overlay:"myGeoJSON", @@ -203,7 +201,7 @@ To add a new geoJSON overlay see http://leafletjs.com/examples/geojson/ for more details about options -To add an Image Overlay +#### To add an Image Overlay var imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]]; msg.payload = { command : {lat:40.74, lon:-74.175, zoom:13 } }; @@ -214,11 +212,10 @@ To add an Image Overlay opt:{ opacity:1.0, attribution:"© University of Texas" } }; -To clear a layer from the map +#### To clear a layer from the map msg.payload.command.clear = "name of your layer/overlay to remove"; - ### Using a local Map Server (WMS server) IMHO the easiest map server to make work is the mapserver package in Ubuntu / Debian. Usually you will start with @@ -227,7 +224,7 @@ IMHO the easiest map server to make work is the