Options
All
  • Public
  • Public/Protected
  • All
Menu

Provide an OpenLayers format for encoding and decoding features for use in permalinks.

The code is based on Stéphane Brunner's URLCompressed format.

TODOs:

  • The OpenLayers-URLCompressed format has options where the user can define attribute and style transformers. This is currently not supported by this format.
  • The OpenLayers-URLCompressed format has a "simplify" option. This format does not have it.
  • ol.style.Icon styles are not supported.
  • Transformation of coordinates during encoding and decoding is not supported.
see

https://github.com/sbrunner/OpenLayers-URLCompressed

Hierarchy

  • TextFeature
    • default

Index

Constructors

Methods

  • decodeCoordinates_(text: string, opt_flatCoordinates: number[]): number[]
  • Read a logical sequence of characters and return (or complete then return) an array of numbers. The coordinates are assumed to be in two dimensions and in latitude, longitude order. corresponding to a geometry's coordinates.

    Parameters

    • text: string

      Text.

    • opt_flatCoordinates: number[]

    Returns number[]

    Flat coordinates.

Generated using TypeDoc