Leaflet freezes on zoom when it's in an XSLTForms XML file -
I am working with XSLTForms and I have to add a magazine map. But something does not work with that library. I have the following code in an .xml file (I have every form of form), but when I zoom the map (double clicking or clicking the zoom button) Freeze.
_Zoom in function triggers on freezing but does not change the expected view.
This simple example is examples:
& lt ;? Xml-stylesheet href = "xsltforms / xsltforms.xsl" type = "text / xsl"? & Gt; & Lt ;? Xsltforms-options debug = "no" lang = "en"? & Gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: xf = "http://www.w3.org/2002/xforms" xmlns: ev = "http: // www. W3. Org / 2001 / xml-events "& gt; & Lt; Top & gt; & Lt; Link type = "text / css" rel = "stylesheet" href = "res / leaflet-0.8-dev / leaflet.css" /> & Lt; Link type = "text / css" rel = "stylesheet" href = "res / style.css" /> & Lt; Script type = "text / javascript" src = "res / jquery-ui / jquery-1.11.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "res / leaflet-0.8-dev / leaflet.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Function ShowOperDemap (ID) {var map = LMP; L.tileLayer ('https: // {s} .tiles.mapbox.com / v3 / {id} / {z} / {x} / {y} .png', {id: 'examples.map-i875mjb7' }) AddTo (map). Map.locate ({setView: true}); } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body onload = "showOutdoorMap ('map')" & gt; & Lt; Fieldset & gt; & Lt; Label class = "header" & gt; Demo: & lt; / Label & gt; & Lt; Div id = "map" style = 'width: 100%; Height: 250px; '/ & Gt; & Lt; / Fieldset & gt; & Lt; / Body & gt; & Lt; / Html & gt; setView: function (center,
Zoom, option) , allow the _resetView method to reset:
if (animated) {clear timeout (this._sizeTimer); / * To return to it; I had to comment on this line to avoid and leave any problem: / * if (L.Dom Youthil Class (this._ element, 'sheet-zoom-ant')) {return; } * /
Comments
Post a Comment