cgxp.api.Map

Public Methods

Public methods.

Map.addCustomLayer()
Parameters:
  • layerTypeString A text description of the layer format (either “text” or “gpx”)
  • layerNameString A text description for the layer
  • layerUrlString The url the file to load
  • optionsObject Options object with optional style properties for GPX layers: strokeColor, strokeWidth, strokeOpacity or optional parsing configuration for Text layers: attr (array of fields identifiant) and optional callback functions for the HTTP request, success and error.
Map.addMarker()
Parameters:optionsObject List of marker options
Map.recenter()
Parameters:
  • centerArray(Number) Center coordinates
  • zoomNumber
Map.recenterOnBoundingBox()

allow to recenter on a bounding box :arg minx: Number minx coordinate :arg miny: Number miny coordinate :arg maxx: Number maxx coordinate :arg maxy: Number maxy coordinate

Map.recenterOnObjects()
Parameters:
  • layerString The layer name
  • idsArray(String) The ids of the feature to recenter on.
  • highlightBoolean Tells whether to hilight the features or not. Defaults to false.
Map.selectObject()
Parameters:idString The id of the feature to unselect.

Table Of Contents

Previous topic

cgxp.api.Click

Next topic

Widgets

This Page

Fork me on GitHub