[OpenLayers-Users] (no subject)

2009-04-22 Thread James Leveille
Hi, I'm trying to send a getFeatureInfo to all queryable layers. In the onComplete function, I would like to be able to know, for each response, the index of the corresponding layer (the layer index for which the request was sent). But the index value in the onComplete function is always

[OpenLayers-Users] GetFeatureInfo with loadURL

2009-04-22 Thread James Leveille
Hi, I'm trying to send a getFeatureInfo to all queryable layers. In the onComplete function, I would like to be able to know, for each response, the index of the corresponding layer (the layer index for which the request was sent). But the index value in the onComplete function is always

Re: [OpenLayers-Users] GetFeatureInfo with loadURL

2009-04-22 Thread James Leveille
of the actual value if i printed out (as I get with the first declaration). Aren't those two declarations equivalent ? Again, thanks for your help. James -Message d'origine- De : Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] Envoyé : 22 avril 2009 14:25 À : James Leveille Cc

[OpenLayers-Users] RE : general question

2009-04-01 Thread James Leveille
I've done something to allow a user to add a WMS on the fly. Here's a few clues : - I ask the user for the URL - http request to get the capabilities - from the answer to the getCapabilities, a pick up the title and the available layer(s) - something like : var xmlFormat = new

[OpenLayers-Users] RE : Measure Control - ge t distance on mouse move

2009-03-19 Thread James Leveille
Try this : var oMeasrLinearCtrlOptions = { title: 'bla bla bla', displayUnits: 'km', eventListeners:

[OpenLayers-Users] RE : Openlayers and Mapnik - Problems generatingmaps in OL with XML (Mapnik )

2009-03-18 Thread James Leveille
Hi all, I've been struggling with de WMSCapabilities (as defined here http://trac.openlayers.org/ticket/1176 https://webmail.consulting-fujitsu.com/exchweb/bin/redir.asp?URL=http://trac.openlayers.org/ticket/1176 ). Works fine with FF, but not with IE(6). The capFormat.read seems to be the

[OpenLayers-Users] WMSCapabilities

2009-03-18 Thread James Leveille
This time, with an appropriate title (sorry) ... Hi all, I've been struggling with de WMSCapabilities (as defined here http://trac.openlayers.org/ticket/1176 https://webmail.consulting-fujitsu.com/exchweb/bin/redir.asp?URL=http://trac.openlayers.org/ticket/1176 ). Works fine with FF, but not

[OpenLayers-Users] WMC - Loading layers as 'not' baseLayers

2009-03-05 Thread James Leveille
Hi, I'm loading a context as follow : [...] var wmc = new OpenLayers.Format.WMC (); wmc.read ( oHttpRequest.responseText, {map: map}); [...] It works fine but all the layers are loaded as base layers. Since I dont want those to be base layers, I've tried :

[OpenLayers-Users] RE : measure control

2009-02-26 Thread James Leveille
the area in the evt.measure property in this case, so you have to calculate the length using something like (untested): var a = map.getControlsByClass('OpenLayers.Control.Measure'); var ctrl = a[0]; var length = ctrl.getBestLength(evt.geometry)[0]; Hope this helps. Best regards, Bart James Leveille

[OpenLayers-Users] measure control

2009-02-25 Thread James Leveille
Hi, I'm using the OpenLayers.Control.Measure control. From the many examples found, the handler declaration can either be : 1) function handleMeasr(geometry, length, area, units) {} 2) function handleMeasr(event) {} Since I need the area the perimeter, the first one should be the