[MapQuery] Re: OpenLayers.Layer.Vector.RootContainer

Giuseppe De Marco peppelinux at yahoo.it
Sat May 19 12:56:17 EDT 2012


I don't understand yet why mq create a RootContainer when I create a new mq layer.
If I create a feature inside a vector layer the newcoming mq layer, that carries the rootcointainder by default, doesn't permit to me to do getfeatures on the features !

So the features remains unclickables !

Volker why mq create a rootcontainer also when a mq wms layer was instanciated ?

and why if I destroy the rootcontainer i got this:

	1. Uncaught TypeError: Cannot read property 'style' of null
	1. OpenLayers.Layer.OpenLayers.Class.getZIndexLayer.js:1293
	2. OpenLayers.Handler.Feature.OpenLayers.Class.moveLayerBackFeature.js:430
	3. OpenLayers.Handler.Feature.OpenLayers.Class.deactivateFeature.js:384
	4. OpenLayers.Control.SelectFeature.OpenLayers.Class.deactivateSelectFeature.js:277
	5. $.MapQuery.Map._updateSelectFeatureControljquery.mapquery.core.js:368
	6. $.MapQuery.Map._removeLayerjquery.mapquery.core.js:256
	7. $.MapQuery.Layer.removejquery.mapquery.core.js:607
	8. $.widget._removejquery.mapquery.mqLayerManager.js:153
	9. $.widget._create.map.bind.widgetjquery.mapquery.mqLayerManager.js:119
	10. f.event.dispatchjquery-1.7.1.min.js:3
	11. f.event.add.h.handle.ijquery-1.7.1.min.js:3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapquery/attachments/20120519/f952d021/attachment-0001.html


More information about the MapQuery mailing list