Geoportal Extension for OpenLayers
API Reference

Module: Gp

Gp

This is the global variable that is exposed in the browser environment.
Content is composed of constructor, functions and properties...

Config: (...)

ColorUtils: (...)
LayerUtils: (...)
MathUtils: (...)
ProxyUtils: (...)
Logger: (...)

olExtended: (...)

date: "YYYY-MM-DD"
version: "X.X.X"

Error: (...)
Helper: (...)
Protocols: (...)
Services: (...)
servicesDate: "YYYY-MM-DD"
servicesVersion: "X.X.X"

Note :

function to add projections in 'proj4',
they are exposed in the global variable 'ol':

Gp.olExtended.includeProjections()

You can test it :

  • ol.proj.proj4("EPSG:43260")

Projections include by default into proj4 and ol :

WGS84
['EPSG:4326']
['EPSG:3785'], ['EPSG:3857'],
['EPSG:900913'], ['EPSG:102113']

and

["EPSG:2154"],
["EPSG:27571"], ["EPSG:27572"], ["EPSG:27573"], ["EPSG:2757"],
["CRS:84"],
["IGNF:LAMB93"],
["IGNF:LAMBE"],
["IGNF:LAMB1"], ["IGNF:LAMB2"], ["IGNF:LAMB3"], ["IGNF:LAMB4"],
["IGNF:RGF93G"],
["IGNF:WGS84G"]

The following variables are aslo global :

  • ol,
  • eventbus

Members

staticmodule:Gp.ColorUtils

See:
  • Gp.ColorUtils

static,constantmodule:Gp.date

Publication date

staticmodule:Gp.Error

Error

See:

staticmodule:Gp.Helper

Helper

See:

staticmodule:Gp.HelperUtils

See:
  • Gp.HelperUtils

staticmodule:Gp.LayerUtils

See:
  • Gp.LayerUtils

staticmodule:Gp.Logger

See:
  • Gp.Logger

staticmodule:Gp.MathUtils

See:
  • Gp.MathUtils

staticmodule:Gp.olExtended

Expose extensions openlayers extended

See:

staticmodule:Gp.Parser

See:
  • Gp.Parser

staticmodule:Gp.Protocols

Protocols

See:

staticmodule:Gp.ProxyUtils

See:
  • Gp.ProxyUtils

staticmodule:Gp.Register

See:
  • Gp.Register

staticmodule:Gp.Services

Services

See:

staticmodule:Gp.servicesDate

servicesDate

See:

staticmodule:Gp.servicesVersion

servicesVersion

See:

static,constantmodule:Gp.version

Version