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

@ -17,7 +17,7 @@
height:5px; height:5px;
background-color: black; background-color: black;
background-position: center; background-position: center;
-webkit-border-radius: 15px; -webkit-border-radius: 15px;
border-radius: 15px; border-radius: 15px;
margin-left: 5px; margin-left: 5px;
/*border: 5px; */ /*border: 5px; */

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) {}
window.map.removeControl(map.zoomControl); if(map.zoomControl._map) {
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>');