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: (...)
olUtils: (...)
olExtDate: "YYYY-MM-DD"
olExtVersion: "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 'proj4' and 'ol':

Gp.olExtended.includeProjections()

You can test it :

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

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 :

  • proj4,
  • ol,
  • eventbus

Members

static,constantmodule:Gp.olExtDate

Publication date

staticmodule:Gp.olExtended

Expose extensions openlayers extended

static,constantmodule:Gp.olExtVersion

Version

staticmodule:Gp.Services

Services

See: