[OpenLayers-Users] measure control...

SK92129 sk92129 at gmail.com
Thu Feb 21 15:24:08 PST 2013


Thank you for finding that typo, and oversight on adding it twice.


On Thu, Feb 21, 2013 at 3:18 PM, Arnd Wippermann [via OSGeo.org] <
ml-node+s1560n5036022h35 at n6.nabble.com> wrote:

> Hi,
>
> folks who use OpenLayer looks at their code, if it's all right.
>
> Instead of diplaySystem you should use displaySystem and you get what you
> want.
>
> You add also 2 times the measureControl to your map.
>
>     mapOptions.controls = measureControls;
>     ...
>     map.addControl(measureTool);
> One is enough.
>
> OpenLayers is a powerful javascript library to build complex web map
> applications.
> It's easy to use, but it's also easy to fall in ones own trap.
>
> Good luck with OL
> Arnd
>
>  ------------------------------
>  *Von:* [hidden email]<http://user/SendEmail.jtp?type=node&node=5036022&i=0>[mailto:[hidden
> email] <http://user/SendEmail.jtp?type=node&node=5036022&i=1>] *Im
> Auftrag von *Sean K
>
> *Gesendet:* Donnerstag, 21. Februar 2013 23:13
> *An:* Gery .
> *Cc:* [hidden email]<http://user/SendEmail.jtp?type=node&node=5036022&i=2>
>
> *Betreff:* Re: [OpenLayers-Users] measure control...
>
>   do you mean that the layer in geoserver controls the measure tool in
> OpenLayers?
>
> So if the layer in geoserver is UTM -- the measurement tool cannot
> generate miles ?
>
> What do folks do to make this work as a general solution -- regardless of
> the projection in the layer?  Do folks who use OpenLayer have to look at
> the measurement event.units and convert on the OpenLayer javascript side?
>
>
>
>
> On Thu, Feb 21, 2013 at 2:01 PM, Gery . <[hidden email]<http://user/SendEmail.jtp?type=node&node=5036022&i=3>
> > wrote:
>
>>
>> probably because your base map has utm values, check the projection of
>> your layer.
>>
>>
>>
>> __________________________________________________________________________________________
>> Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si
>> NO es necesario.
>> Think green - keep it on the screen. Do NOT print if it is NOT necessary.
>> Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken
>> Sie es NICHT, wenn es NICHT notwendig ist.
>>
>>
>>  > Date: Thu, 21 Feb 2013 13:57:53 -0800
>>
>> > From: [hidden email]<http://user/SendEmail.jtp?type=node&node=5036022&i=4>
>> > To: [hidden email]<http://user/SendEmail.jtp?type=node&node=5036022&i=5>
>> > Subject: Re: [OpenLayers-Users] measure control...
>>
>> >
>> > I still dont get miles units -- mine still comes out as KM.
>> >
>> > Here is my measure tool .
>> >
>> >
>> > measure.html
>> > <http://osgeo-org.1560.n6.nabble.com/file/n5036001/measure.html>
>> >
>> > Why is it still KM?
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036001.html
>> > Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> > _______________________________________________
>> > Users mailing list
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5036022&i=6>
>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
>
> --
> Sean
>
> _______________________________________________
> Users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5036022&i=7>
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036022.html
>  To unsubscribe from measure control..., click here<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3942722&code=c2s5MjEyOUBnbWFpbC5jb218Mzk0MjcyMnwyMDc4OTU0MjEy>
> .
> NAML<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Sean




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036023.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130221/2856c9e8/attachment.html>


More information about the Users mailing list