[OpenLayers-Users] OL 2.13 generate unused html tags for PanControl

maven apache apachemaven0 at gmail.com
Sun Jul 14 17:38:17 PDT 2013


Hi:

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.

This is the codes:

this.map = new OpenLayers.Map(container, {
"projection" : "EPSG:4490",
 "controls" : []
});

this.controls = {};
 this.controls.drag = new OpenLayers.Control.Navigation({
"dragPanOptions" : {
"enableKinetic" : true
 }
});
this.controls.p = new OpenLayers.Control.PanPanel({});
 var cons = [ this.controls.drag, this.controls.p ];
this.map.addControls(cons);

And this is generated tags <http://snag.gy/FkGE2.jpg>.

Note the tags inside the red rectangle, it seems that these tags are unused.

Do I miss anything?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130715/a6b0df27/attachment.html>


More information about the Users mailing list