new ShareUrlHelper(map, baseUrl, markLocation)
Helps to create the share dialog url
Parameters:
Name |
Type |
Description |
map |
OpenLayers.Map
|
The map to create the url for |
baseUrl |
string
|
The base url to create the url from |
markLocation |
boolean
|
Whether the share url should mark the location |
Members
events
Properties:
m_baseUrl
Properties:
Name |
Type |
Description |
m_baseUrl |
string
|
The base url to add the parameters to |
m_map
Properties:
Name |
Type |
Description |
m_map |
OpenLayers.Map
|
The map to create the url for |
m_markLocation
Properties:
Name |
Type |
Description |
m_markLocation |
boolean
|
Whether the share url should mark the location |
m_visibleDataLayers
Properties:
Name |
Type |
Description |
m_visibleDataLayers |
string
|
The visible data layers |
Methods
getUrl() → {string}
Gets the current url for the map. urlupdated might be fired if the layers haven't been retrieved from a geognosis http layer yet.
Returns:
The current url
-
Type
-
string
Events
urlupdated
Url updated event
Type:
Properties:
Name |
Type |
Description |
url |
string
|
The new url |