[Geojs-users] Programatically creating annotations
david.manthey at kitware.com
Fri Dec 9 15:38:37 EST 2016
If layer is an annotationLayer, then you can create a point like so:
-118, y: 37}}))
Each annotation takes separate options. They all take an optional style
specification. Points get a single position. Polygons take a list of
vertices (alternately called coordinates). Rectangles take a list of corners
(alternately called coordinates).
On Fri, Dec 9, 2016 at 3:27 PM, Dan LaManna <dan.lamanna at kitware.com> wrote:
> Hi all -
> For background, in geonotebook we're "replaying" server side state to the
> client (in the event of a refresh, for example). We have our own
> definitions of annotations (in Python) which contain the necessary data
> (coordinates, style information, etc) to create annotations within GeoJS.
> After taking a brief look at the GeoJS annotation code, it seems closely
> tied to the user interaction aspect of creating annotations. What we're
> looking for is a simple way to create an annotation (point, rectangle,
> straightforward API for this that I'm missing?
> Thanks GeoJSers!
> Dan LaManna
> Kitware, Inc.
> Geojs-users mailing list
> Geojs-users at public.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Geojs-users