If we do several times:
selectContorl.select(feature)
feature is added to layer.selectedFeature array several times.
Should we first check if the feature is allready selected (ill open a ticket)
if (OpenLayers.Util.indexOf(layer.selectedFeatures, feature) == -1) {
this.select(feature);
}
If you define your wms/wfs with a localhost url, it will not work because the
remote try to access the wms service on itself.
So you have to define the wms layers with an IP or a domain name.
Exemple:
var wms = new OpenLayers.Layer.WMS( OpenLayers WMS,
Hi Ivan,
Do you have an example showing when this can happen ? I've been playing
with the SelectFeature control and can't figure how you can have the
same feature added 2 times to the layer.selectedFeatures array, unless
you do it manually.
Regards,
Alexandre
Ivan Grcic wrote:
If we do
Yep, im calling select manually (programatically)
On Thu, Aug 6, 2009 at 2:30 PM, Alexandre Dubead...@mapgears.com wrote:
Hi Ivan,
Do you have an example showing when this can happen ? I've been playing with
the SelectFeature control and can't figure how you can have the same feature
added 2
Thanks, That worked. I figured it was something simple.
Jerome Freyre wrote:
If you define your wms/wfs with a localhost url, it will not work because
the remote try to access the wms service on itself.
So you have to define the wms layers with an IP or a domain name.
Exemple:
var