new Geoportail( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
olx.source.Geoportail |
<optional> |
WMTS options Properties
|
Extends
- ol.source.WMTS
Members
-
<static> defaultAttribution
-
Standard IGN-GEOPORTAIL attribution
Methods
-
<static> getServiceURL()
-
Get service URL according to server url or standard url
-
<static> tileLoadFunctionWithAuthentication(authentication, format)
-
Get a tile load function to load tiles with basic authentication
Parameters:
Name Type Description authentication
string as btoa("login:pwd")
format
string mime type
Returns:
tile load function to load tiles with basic authentication
- Type
- function
-
getFeatureInfo(coord, resolution, projection, options)
-
Get feature info
Parameters:
Name Type Description coord
ol.Coordinate resolution
Number projection
ol.proj.Projection default the source projection
options
Object Properties
Name Type Description INFO_FORMAT
string response format text/plain, text/html, application/json, default text/plain
callback
function a function that take the response as parameter
error
function function called when an error occurred
-
getFeatureInfoUrl(coord, resolution, projection, options)
-
Return the GetFeatureInfo URL for the passed coordinate, resolution, and projection. Return
undefined
if the GetFeatureInfo URL cannot be constructed.Parameters:
Name Type Description coord
ol.Coordinate resolution
Number projection
ol.proj.Projection default the source projection
options
Object Properties
Name Type Description INFO_FORMAT
string response format text/plain, text/html, application/json, default text/plain
Returns:
GetFeatureInfo URL.
- Type
- String | undefined
-
getGPPKey()
-
Return the associated API key of the Map.
Returns:
the API key.
-
serviceURL()
-
Get service URL according to server url or standard url
-
setGPPKey(key, authentication)
-
Set the associated API key to the Map.
Parameters:
Name Type Description key
String the API key.
authentication
String as btoa("login:pwd")