-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infoclick: Be able to use x,y and zoom as params. #1145
Comments
@jesade-vbg Can you tag and mark as done please? |
Is this done? Have I missed something? |
I thought it was completed in 3b565d8, but perhaps I mixed it up with something else? 😄 Edit: ahh.. it looks like two separate issues. Sorry! |
I have a suggestion, to make AppModel a singleton. The AppModel is passed around in alot of places in the code. As there is only one AppModel instance that coders want to access, why not make it a singleton? Whats your opinion? @Hallbergs @jacobwod Check this commit: |
Interesting! Perhaps we can talk about this some day this week? |
We need the possibility to access and use {x}, {y} and {zoom} in infoclick templates to create links etc containing these.
Similar to: #1076 (comment)
Maybe group these as {click:param}
Edit:
I've also added the possibility to convert the coordinates to another projection.
Example:
{click:x|toProjection('x', 'click:x', 'click:y','EPSG:4326', 4)}
this converts x to EPSG:4326 (used by google etc)
{click:y|toProjection('y', 'click:x', 'click:y','EPSG:4326', 4)}
this converts y to EPSG:4326 (used by google etc)
So now you should be able to create links to a wide variety of map services.
The text was updated successfully, but these errors were encountered: