From fb9b44e5be7219d14a46cda575fd73c020268481 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 2 Oct 2018 18:54:09 +0100 Subject: [PATCH] small readme update to include wms overlay --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 639b699..0498d95 100644 --- a/README.md +++ b/README.md @@ -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 = {