开发者

User location by js map

开发者 https://www.devze.com 2023-04-11 11:33 出处:网络
Is there some kind of map that allows selecting on the fly locations 开发者_运维问答and allows to save them for users? Some Gmap API method for example?

Is there some kind of map that allows selecting on the fly locations 开发者_运维问答and allows to save them for users? Some Gmap API method for example?

I would like a navigable map instead of standard input text where user can specify their own location by clicking on the location itself if possible.


There are lots of options for the javascript programmable client side map processing. For the Javascript client you could use:

  • Bing Maps SDK

  • Google Maps SDK

  • OpenLayers

  • GeoExt

  • PolyMaps

  • Leaflet

Of these I would personally recommend OpenLayers as the most versatile and truly open client side framework.

This is an example of something similar to what you are suggesting using OpenLayers.

You may want to use a geocoding service, google offer a versatile geocoding API, but there are others. One thing to think about is the licensing agreements of the various client side frameworks and APIs vary massively.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号