Hi,
I want to add bookmarks feature to my Thinkgeo map, please provide us complete details that how can we add such feature for the web user so that he can save his bookmarks and re use it when logins back to the system.
Thanks,
Jawad
Bookmark Feature for Thinkgeo
Hi Jawad,
Could you please describe more detail about what’s the “bookmarks feature” you designed in the map?
I guess bookmarks should means to save the extent for current user, or the shapes edited by user, or the marker&popup status.
We are glad to help you solve the issue met when you want to save map status, so you can implement your own user management system based on that.
Regards,
Don
Hello,
Thanks for the reply but here is the link for understanding my requirement "giseditorwiki.thinkgeo.com/w/Bookmarks" . As you can see in the link that user can save the bookmarks and use it. I want the similar feature for our MVC web GIS map, so that user can have bookmarks.
waiting for your reply.
Thanks,
Jawad
Hi Jawad,
Thanks for your link. The wiki said: “Bookmarks let you store the map’s current location and zoom level, and then quickly jump between different bookmarks with the click of your mouse.” If that’s what you want, I think it’s not hard to implement.
As you know, the GisEditor is our Editor utility, it integrated many features, so user can directly use it handle data and render them. But our Map Suite MVC Edition is only a map control, we provide APIs to user, so they can implement their functions based on the APIs.
As below should be helpful for implement your logic:
1. Add some function for example we have textbox and a button, when user click on it, we can saved the current location and zoom level.
Please view the code of “InteractWithMap” sample in our HowDoISample, it contains the code for how to pass data from client side to server side controller, so you can save the “map.CurrentExtent” and a string as bookmarkName in server side. Of course you can also save them in client side by JavaScript if you need.
2. When user select bookmark, we read the corresponding extent, assign it back to map, so the map will refresh and relocate to saved position.
Regards,
Don