Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a definition section. Cleaned up the page a bit. Changes some instances of "polygon" to "polyline".

The XP360 API is also capable of delivering accurate polygon polyline rendering based on location data for the polygon points.

This section covers functions related to working with polygonspolylines.

Definition: A polyline is a list of points, where line segments are drawn between consecutive points. You can think of it as a polygon that is a single pixel wide (which can then be thickened). Unlike a polygon, a polyline doesn’t need to close (meaning, it doesn’t need to define a closed region). It is typically used to either trace a linear asset (like a river or road) or to outline a region (like a building or city border). Whereas “polygon” is a term used outside GIS and mapping, “polyline” is rarely used anywhere else. See here for more.

...

addPolyline

Adds a polyline to the sphere, using the specified latitude and longitude coordinates for the vertices of the polygonpolyline.

setPolylineDistance

Sets the distance, in meters, for a any given polyline to display. Set Setting to zero displays nothingno polylines. If ANY part of the a polyline is over this distance, none of the polyline renders.

...