Nits and fixes

This commit is contained in:
Kevin 2013-03-31 02:11:16 -07:00
parent cd3380cb69
commit b7e317bb02
2 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,9 @@ window.plugin.zoomSlider.setup = function() {
@@INCLUDERAW:external/L.Control.Zoomslider.js@@ @@INCLUDERAW:external/L.Control.Zoomslider.js@@
try { console.log('done loading Leaflet.zoomslider JS'); } catch(e) {} try { console.log('done loading Leaflet.zoomslider JS'); } catch(e) {}
if(map.zoomControl._map) {
window.map.removeControl(map.zoomControl); window.map.removeControl(map.zoomControl);
}
window.map.addControl(L.control.zoomslider()); window.map.addControl(L.control.zoomslider());
$('head').append('<style>@@INCLUDESTRING:external/L.Control.Zoomslider.css@@</style>'); $('head').append('<style>@@INCLUDESTRING:external/L.Control.Zoomslider.css@@</style>');