Distance measurement!

796 views
Skip to first unread message

gastonc...@gmail.com

unread,
Jan 27, 2017, 9:41:13 AM1/27/17
to cesium-dev
Hi im new on cesium development and i am looking a tool like google earth ruler, my question is: is something like this in cesium or i have to make it ?

gastonc...@gmail.com

unread,
Jan 27, 2017, 9:44:34 AM1/27/17
to cesium-dev, gastonc...@gmail.com

Hannah Pinkos

unread,
Jan 27, 2017, 10:00:15 AM1/27/17
to cesium-dev, gastonc...@gmail.com
Hello,

This is not something included with Cesium, so you would have to make your own widget.  You can use an EllipsoidGeodesic to find the distance along the ellipsoid surface between two points.

Best,

Hannah

On Friday, January 27, 2017 at 9:44:34 AM UTC-5, gastonc...@gmail.com wrote:
http://imagizer.imageshack.us/a/img923/9995/s0hMyX.png

Kevin Ring

unread,
Jan 28, 2017, 6:49:37 AM1/28/17
to cesiu...@googlegroups.com
You might consider starting with the one in TerriaJS, which is a library that uses Cesium and Leaflet under the hood.  The source file that implements distance (and also area) measurement is here:

Live demo here:
(click the icon on the right under the zoom in/out buttons)

More about TerriaJS here:

Kevin

On Sat, Jan 28, 2017 at 1:41 AM, <gastonc...@gmail.com> wrote:
Hi im new on cesium development and i am looking a tool like google earth ruler, my question is: is something like this in cesium or i have to make it ?

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

gastonc...@gmail.com

unread,
Jan 28, 2017, 4:46:41 PM1/28/17
to cesium-dev
El sábado, 28 de enero de 2017, 8:49:37 (UTC-3), Kevin Ring escribió:
> You might consider starting with the one in TerriaJS, which is a library that uses Cesium and Leaflet under the hood.  The source file that implements distance (and also area) measurement is here:
> https://github.com/TerriaJS/terriajs/blob/master/lib/ReactViews/Map/Navigation/MeasureTool.jsx
>
>
>
> Live demo here:
> http://nationalmap.gov.au/
> (click the icon on the right under the zoom in/out buttons)
>
>
> More about TerriaJS here:
> http://terria.io
>
>
> Kevin
>
>
> On Sat, Jan 28, 2017 at 1:41 AM, <gastonc...@gmail.com> wrote:
> Hi im new on cesium development and i am looking a tool like google earth ruler, my question is: is something like this in cesium or i have to make it ?
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "cesium-dev" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
>
>
> www.kotachrome.com/kevin

Thank you! its just i looking for!!!
Reply all
Reply to author
Forward
0 new messages