small readme update to include wms overlay

pull/52/head
Dave Conway-Jones 6 years ago
parent 98391b4b75
commit fb9b44e5be
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

@ -269,12 +269,31 @@ Optional properties include
#### To add a new base layer
The layer will be called `name`. By default it expects a leaflet Tilelayer style url. You can also use a WMS
style server by adding a property `wms: true`. (see overlay example below)
msg.payload.command.map = {
name:"OSMhot",
url:'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
opt:{ maxZoom:19, attribution:"© OpenStreetMap" }
};
#### To add a WMS overlay layer - eg US weather radar
To add an overlay instead of a base layer - specify the `overlay` property instead of the `name`.
msg.payload.command.map = {
overlay: "NowCoast",
url: 'https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WmsServer?',
opt: {
layers: '1',
format: 'image/png',
transparent: true,
attribution: "NOAA/NWS"
},
wms: true
}
#### To add a new geoJSON overlay
msg.payload.command.map = {

Loading…
Cancel
Save