You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 2
Next »
Provide a helper action to generate a URL to the current client including references to the current position and scale. The URL will be copied to clipboard and can easily be pasted into a document or another browser. Accessing the generated URL will open up a new client and set the initial position and scale to instructed by the URL.
ID
se.viamap.client.map.urlGenerator
Name | Type | Cardinality | Default | Description |
---|
url | string | 0..1 | Browser url | The url will be set automatically by the browser. This can optionally be overridden by setting a fixed url. |
marker | boolean | 0..1 | false | Should a marker be placed on the x,y position when the client is loaded |
showMessage | boolean | 0..1 | true | Should a message pop up to confirm that the URL have been generated and copied to clipboard |
Example
<item action="weave.urlGenerator" >
<url>https://localhost/weave/main.html</url>
<marker>true</marker>
<showMessage>false</showMessage>
</item>
i18n resources
id | default |
---|
map.urlGenerator.tooltip.title | Copy hyperlink to clipboard |
map.urlGenerator.tooltip.text | Generates a hyperlink to this client with reference to current position and scale. The hyperlink will be copied to clipboard |
map.urlGenerator.title | Copy hyperlink |
map.urlGenerator.success.title | Copy success |
map.urlGenerator.success.msg | Successfully copied hyperlink to clipboard |
map.urlGenerator.error.msg | Could not copy hyperlink to clipboard |