简体   繁体   中英

Creating a dynamic map from set of Lat longs c#.net

我正在做一个ac#.net应用程序,在其中我想显示一个具有从数据库中动态获取经纬度的地图(折线),我尝试了Google的反向地理编码,但是我被困在这里进行工作,任何人都可以帮助我找到适合我的方案的解决方案

You dont need reverse geocoding for this. Since you have a set of latlng's that will fetched form the database, this is the scene that should be followed--

Suppose you have a Asp server button, in onClick event, load the latlng values from the database and store them in an array in code behind.

Then pass this array to a javascript function that will perform placing this markers on the map. You can have a look at "this" code where I have already provided the code. Hope it will help you out in moving forward.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM