getsmap / smap-responsive

A JavaScript framework for simple creation of web maps with responsive design supporting a range of different browsers and devices
GNU General Public License v3.0
14 stars 12 forks source link

Goto XY feature request #232

Closed jakelund closed 8 years ago

jakelund commented 8 years ago

Would like to input coordinates and have the map place a pin there. Support for several coordinate systems preferable. The foundation should be there considering using search on parcels uses coordinates to place a pin on that parcel. Panning a pin to the right coordinates possible today, but not really user friendly.

No such feature at hitta.se, eniro.se or lantmäteriet.se. Would be great to add to smap.

johanlahti commented 8 years ago

Thanks for the suggestion. I think what you describe is already implemented, using the xy web parameter like this: xy={lon},{lat},{popup text},{EPSG number}. For instance:

http://localhost/smap-responsive/dev.html?xy=13.0,55.6   // assuming EPSG:4326
http://localhost/smap-responsive/dev.html?xy=13.0,55.6,,4326   // setting projection explicitly
http://localhost/smap-responsive/dev.html?xy=13.0,55.6,Hej,4326  // setting a popup text
johanlahti commented 8 years ago

Reopen this issue if you are missing something regarding this functionality.