logo
API Documentation
Tutorials
Getting Started Initialization Layers Third party Controls Geometries Vector styles Measures InfoBox Utils
Releases

Documentation

Modules

  • Constants

Events

  • FEATURE_CLICK
  • FEATURE_HOVER
  • CENTER_DATE_IMAGE
  • CHANGE_MEASURE
  • CLICK
  • COMPLETE_COLLECTIONS
  • FEATURES_CLICK
  • FIND_IMAGES_LOADED
  • FINISH_MEASURE
  • MAP_INITIALIZE
  • MAP_STATUS_EVENT
  • MOVE_END
  • NO_3D_IMAGES
  • POINTER_MOVE
  • START_MEASURE
  • TILES_END_LOAD
  • TILES_START_LOAD
  • FEATURE_CLICK
  • FEATURE_HOVER

General

Classes / Controls

  • Bar
  • Button
  • Swipe
  • Toggle

Classes / Managers

  • CollectionManager
  • OverlayManager

Classes

  • Map

Classes / View

  • MapStatusView

Geometry

Classes

  • Extent
  • Feature
  • Line
  • Location
  • MultiPolygon
  • Point
  • Polygon

Classes / Readers

  • GeoJSON
  • WKT

InfoBox

Classes

  • InfoBox

Layers

Classes

  • ArcGISLayer
  • BingLayer
  • GroupLayer
  • ImageryLayer
  • OSMLayer
  • VectorLayer
  • VectorTileLayer
  • WFSLayer
  • WMSLayer
  • WMTSLayer
  • XYZLayer

Classes / Base Layers

  • BaseLayer
  • BaseVectorLayer

Measurements

Classes / Tools

  • CircleTool
  • HeightTool
  • LineTool
  • PointTool
  • PolygonTool
  • RectangleTool
  • RelativeHeightTool

Classes

  • Measure

Objects

Classes

  • Collection
  • CollectionStatus
  • Image
  • LayerCollections
  • LayerCollectionsStatus
  • MapStatus

Services

Classes

  • UserService

Styles

Classes

  • Circle
  • Fill
  • Icon
  • RegularShape
  • Stroke
  • Style
  • Text

Utils

Classes

  • Transform

Class

Point

Point(location)

The Point class allows you to add points to your map.

Learn more about how to implement the Point class in our Point tutorial.

Constructor

# new Point(location)

Parameters:
Name Type Description
location Location

Location object.

Tutorials:
  • Point
Example

Create simple point

const point = new Vexcel.Geometry.Point(
 new Vexcel.Geometry.Location(33.34902669028525,-86.09930716682985)
 );

Classes

Point

Methods

# clone() → (non-null) {Point}

Make a complete copy of the geometry.

Clone.

Point

# getLocation() → {Location}

Return Location object

location object with latitude and longitude

Location

# getLocations() → {Array.<Location>}

Return array of Location

array with location object with latitude and longitude

Array.<Location>

# getType() → {object}

Get the type of this geometry.

Geometry type.

object

# setLocation(location)

Update location coordinates

Parameters:
Name Type Description
location Location

Location object.

# toGeoJSON() → {string}

Convert geometry to GeoJSON string with xy coordinates [long, lat]

string

# toWKT() → {string}

Convert geometry to WKT string with xy coordinates [long, lat]

string

Documentation generated by Vexcel Imaging