From 98d528c4590ceff6d629dbb1e8eb2075482abe50 Mon Sep 17 00:00:00 2001 From: Nicolasribot Date: Thu, 12 May 2016 10:07:05 +0200 Subject: [PATCH] added getLegendGraphics feature, based on getFeatureInfo code --- examples/app.js | 10 +++-- examples/index.html | 1 + leaflet.wms.js | 104 +++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 105 insertions(+), 10 deletions(-) diff --git a/examples/app.js b/examples/app.js index 83e9dc0..0f4d206 100644 --- a/examples/app.js +++ b/examples/app.js @@ -8,9 +8,13 @@ requirejs.config({ define(['leaflet', 'leaflet.wms'], function(L, wms) { -var autowmsMap = createMap('autowms-map', false, true); -var overlayMap = createMap('overlay-map', false, false); -var tiledMap = createMap('tiled-map', true, false); +var autowmsMap = ''; +var tiledMap = ''; +var overlayMap = ''; + +//autowmsMap = createMap('autowms-map', false, true); +overlayMap = createMap('overlay-map', false, false); +//tiledMap = createMap('tiled-map', true, false); function createMap(div, tiled, autowms) { // Map configuration diff --git a/examples/index.html b/examples/index.html index 9c34e17..26b3139 100644 --- a/examples/index.html +++ b/examples/index.html @@ -2,6 +2,7 @@ leaflet.wms Examples +