<div dir="ltr">Hi:<div><br></div><div>I am using OpenLayers 2.13, and I create a simple map with just one PanControl, however I found that the generated html tags contains some unused codes.</div><div><br></div><div>This is the codes:</div>
<div><br></div><div><div><span class="" style="white-space:pre"> </span>this.map = new OpenLayers.Map(container, {</div><div><span class="" style="white-space:pre"> </span>"projection" : "EPSG:4490",</div>
<div><span class="" style="white-space:pre"> </span>"controls" : []</div><div><span class="" style="white-space:pre"> </span>});</div><div><br></div><div><span class="" style="white-space:pre"> </span>this.controls = {};</div>
<div><span class="" style="white-space:pre"> </span>this.controls.drag = new OpenLayers.Control.Navigation({</div><div><span class="" style="white-space:pre"> </span>"dragPanOptions" : {</div><div><span class="" style="white-space:pre"> </span>"enableKinetic" : true</div>
<div><span class="" style="white-space:pre"> </span>}</div><div><span class="" style="white-space:pre"> </span>});</div><div><span class="" style="white-space:pre"> </span>this.controls.p = new OpenLayers.Control.PanPanel({});</div>
<div><span class="" style="white-space:pre"> </span>var cons = [ this.controls.drag, this.controls.p ];</div><div><span class="" style="white-space:pre"> </span>this.map.addControls(cons);</div></div><div><br></div><div>
And this is <a href="http://snag.gy/FkGE2.jpg">generated tags</a>.</div><div><br></div><div>Note the tags inside the red rectangle, it seems that these tags are unused.</div><div><br></div><div>Do I miss anything?</div><div>
<br></div><div><br></div></div>