[OpenLayers-Users] measure control: google projection metric or not ?

2010-05-11 Thread Oliver Christen
Hello I had to do an intervention on a project using google projection (epsg:900913). That projection is supposed being metric, but to be able to get correct measurement values (in meters) with the OL Measure control, I had to specify geodesic as true in the controler's config. why ? is the

Re: [OpenLayers-Users] measure control: google projection metric or not ?

2010-05-11 Thread Andreas Hocevar
On May 11, 2010, at 12:29 , Oliver Christen wrote: Hello I had to do an intervention on a project using google projection (epsg:900913). That projection is supposed being metric, but to be able to get correct measurement values (in meters) with the OL Measure control, I had to specify

[OpenLayers-Users] measure control google layer

2010-05-06 Thread marco
Hi all, I'm using measure controls with google maps layer. You can see my test page at http://webgis.iamc.cnr.it/webgis/prova/test3.html As you can see, using measure tool, ther's a shift between cursor position and features. Also, I save digitized features in a vector layer, and when I zoom out,

[OpenLayers-Users] Measure Control - hover label?

2009-08-13 Thread Heidt, Christopher M.
I have a MeasureControl setup to draw a line, now I need it to show distance on hover. I've used graphicTitle to do this in the past, but I cant seem to figure out how to do the same when the feature is built with the control. I can listen for the measure event, but the vector doesn't appear to

[OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
Hello, I created a measure control based on the measure.js example My measure control doesn't display the good distance. The distance is longer than expected. I tried with these coordinates # : lat, long Point 1 : 46.81509864093307, -71.22436522446064 Point 2 : 45.54483148742626,

Re: [OpenLayers-Users] Measure control problem

2009-08-03 Thread Kwong Hu Kiu
I think you are looking for the Vincenty distance formula. It's included in the examples as well. To: users@openlayers.org From: steve.tout...@inspq.qc.ca Date: Mon, 3 Aug 2009 10:44:10 -0400 Subject: [OpenLayers-Users] Measure control problem Hello, I created a measure control based

Re: [OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
, users@openlayers.org cc Objet RE: [OpenLayers-Users] Measure control problem I think you are looking for the Vincenty distance formula. It's included in the examples as well. To: users@openlayers.org From: steve.tout...@inspq.qc.ca Date: Mon, 3 Aug 2009 10:44:10 -0400 Subject: [OpenLayers

Re: [OpenLayers-Users] Measure control problem (SOLVED)

2009-08-03 Thread Steve . Toutant
.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.tout...@inspq.qc.ca http://www.inspq.qc.ca Steve Toutant/INSPQ/ 03/08/2009 11:01 AM A Kwong Hu Kiu kwon...@hotmail.com cc users@openlayers.org Objet RE: [OpenLayers-Users] Measure control problem No, I need planar distance since my

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-30 Thread Josh Rosenthal
Hi Andreas, Sorry to bring this question back from the dead, but unless I'm missing something obvious, the sketchmodified event / modify callback aren't triggered from Handler.RegularPolygon. This makes some sense, as they're supposed to take the modified vertex, and in the RegularPolygon, all

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-23 Thread Matt Foster
I'm a tad confused here. Is none of this possible in 2.7? Matt Josh Rosenthal wrote: D'oh! Yes, that should have been obvious. Either use whatever is being triggered by the modify callback, or set a custom one if the control isn't already using one. Much obliged, Josh On Wed, Apr 22,

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Andreas Hocevar
Hi, the solution (if you're using trunk or 2.8) is quite simple. The snippet below replaces the definition of measureControls in the measure example (starting around L65) measureControls = { line: new OpenLayers.Control.Measure(

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread pribram pribram
It works great! Thanks a lot. Pribram ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Josh Rosenthal
Hi Andreas, Thanks a lot for the solution using callbacks. I was wondering if you could suggest how that might be adapted to give the measurements on a draw feature. It's much easier than what I was previously doing for measure and drawFeature (passing a customized modifyFeature function in the

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Andreas Hocevar
Josh Rosenthal wrote: Thanks a lot for the solution using callbacks. I was wondering if you could suggest how that might be adapted to give the measurements on a draw feature. It's much easier than what I was previously doing for measure and drawFeature (passing a customized modifyFeature

Re: [OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-22 Thread Josh Rosenthal
D'oh! Yes, that should have been obvious. Either use whatever is being triggered by the modify callback, or set a custom one if the control isn't already using one. Much obliged, Josh On Wed, Apr 22, 2009 at 4:35 PM, Andreas Hocevar ahoce...@opengeo.orgwrote: Josh Rosenthal wrote: Thanks

[OpenLayers-Users] Measure Control - get distance on mouse move - part 2

2009-04-20 Thread pribram pribram
Hi, Is there anything new about measuring + getting distance on mousemove? http://n2.nabble.com/Measure-Control---get-distance-on-mouse-move-td2503580.html If there is a solution, please publish it. Thanks, Pribram ___ Users mailing list

Re: [OpenLayers-Users] measure control...

2009-04-04 Thread Bart van den Eijnden (OSGIS)
-Users] measure control... Hi, try displaySystem: 'english' in the constructor options. Best regards, Bart David Hollema wrote: My map is in units of feet. My measure control returns units of meters. Is there a way to specify what units the measure control returns? I tried

[OpenLayers-Users] measure control...

2009-04-03 Thread David Hollema
My map is in units of feet. My measure control returns units of meters. Is there a way to specify what units the measure control returns? I tried it in the constructor options below but it still returns units of meters. var measureControl = new

Re: [OpenLayers-Users] measure control...

2009-04-03 Thread Bart van den Eijnden (OSGIS)
Hi, try displaySystem: 'english' in the constructor options. Best regards, Bart David Hollema wrote: My map is in units of feet. My measure control returns units of meters. Is there a way to specify what units the measure control returns? I tried it in the constructor options below but

Re: [OpenLayers-Users] measure control...

2009-04-03 Thread David Hollema
] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Friday, April 03, 2009 10:47 AM To: David Hollema Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] measure control... Hi, try displaySystem: 'english' in the constructor options. Best regards, Bart David Hollema wrote: My map is in units

[OpenLayers-Users] Measure Control - get distance on mouse move

2009-03-19 Thread RFeagin
Has anyone made the measure control get the distance on mouse move? After the first point has been added it would be nice to see a 'real-time' distance using the current mouse position as the final point. Just thought I'd check to see if someone had already done it and was willing to share.

[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

Re: [OpenLayers-Users] measure control

2009-02-25 Thread Bart van den Eijnden (OSGIS)
Hi James, the first syntax is OL 2.6, the second is OL 2.7. I assume you are using a Polygon handler and want to retrieve both the area and the length? The event thrown by the Measure control only contains the area in the evt.measure property in this case, so you have to calculate the length