From 39ea0a4a854a3492cf6c08c965970bbbe81c9ea5 Mon Sep 17 00:00:00 2001 From: Nihal Mirpuri Date: Tue, 24 Sep 2013 23:10:49 +1000 Subject: [PATCH] Added clickable folder icon --- plugins/add-kml.user.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/add-kml.user.js b/plugins/add-kml.user.js index 98784036..3a549f92 100755 --- a/plugins/add-kml.user.js +++ b/plugins/add-kml.user.js @@ -42,17 +42,15 @@ window.plugin.overlayKML.load = function() { L.Icon.Default.imagePath = '@@INCLUDEIMAGE:images/marker-icon.png@@'; var KMLIcon = L.icon({ - iconUrl: '@@INCLUDEIMAGE:images/marker-icon.png@@';, + iconUrl: '@@INCLUDEIMAGE:images/marker-icon.png@@', iconSize: [16, 24], // size of the icon iconAnchor: [16, 8], // point of the icon which will correspond to marker's location popupAnchor: [-3, 16] // point from which the popup should open relative to the iconAnchor }); -// Implementing a folder icon instead of default 'O' icon to open KML. Not yet useable -// L.Control.FileLayerLoad.LABEL = 'Open'; -L.Control.FileLayerLoad.LABEL = 'O'; -L.Control.fileLayerLoad({ + L.Control.FileLayerLoad.LABEL = 'Open'; + L.Control.fileLayerLoad({ fitBounds: true, layerOptions: { pointToLayer: function (data, latlng) {