Re: [OpenMap Users] Several ways to close an OMPoly ?

From: Carsten Ø. Madsen <com_at_navicon.dk>
Date: Mon, 11 Dec 2006 16:13:51 +0100

Use setIsPolygon?

http://www.openmap.net/doc/api/com/bbn/openmap/omGraphics/OMPoly.html#setIsPolygon(boolean)

regards
/carsten

Camille Blondiaux wrote:
> Hi !
>
> I'm new to OpenMap, so my question may seem an easy one to
> answer...
> An OMGraphicHandlerLayer of my soft is receiving from a server
> a list of float llp = [x1, y1, x2, y2...] that is used to draw
> an OMPoly on the screen.
>
> For the moment, I do
>
> omg = new OMPoly(llp, OMGraphic.DECIMAL_DEGREES,
> OMGraphic.LINETYPE_GREATCIRCLE);
>
> But my poly's not closed and I'd like it to be ! So I can add
> the first point at the end of the llp tab, but its behavior is
> bizarre when I add a point (with the drawing tool) above the
> duplicated point !
>
> Which other way could I use to close the Poly ? I saw a
> geometryClosed field, but how to modify it ?
>
> Or should I do by an EditableOMPoly (which was no succesfull
> the way I tried)
>
> thanks in advance
>
> Kmouille
>
> Accédez au courrier électronique de La Poste
> sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn)
> 1 Giga de stockage gratuit – Antispam et antivirus intégrés
>
>
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Dec 11 2006 - 10:16:42 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT