Class: GeoJSONP

GeoJSONP

Feature format for reading and writing data in the GeoJSONP format, using Polyline Algorithm to encode geometry.


new GeoJSONP(options)

Parameters:
Name Type Description
options *

options.

Properties
Name Type Description
decimals number

number of decimals to save, default 6

dataProjection ol.ProjectionLike

Projection of the data we are reading. If not provided EPSG:4326

featureProjection ol.ProjectionLike

Projection of the feature geometries created by the format reader. If not provided, features will be returned in the dataProjection.

Extends

  • ol.format.GeoJSON

Methods


decodeCoordinates(v)

Decode coordinates

Parameters:
Name Type Description
v string | Array.<string>
Returns:

v

Type
ol.coordinate | Array.<ol.coordinate>

encodeCoordinates(v)

Encode coordinates

Parameters:
Name Type Description
v ol.coordinate | Array.<ol.coordinate>
Returns:
Type
string | Array.<string>