我如何从数据库中显示Google地图中的图钉 [英] How I show pins in a Google map from a database

查看:240
本文介绍了我如何从数据库中显示Google地图中的图钉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,我希望在谷歌地图位置显示数据库,(lat,lng,city)用户从网页搜索城市,然后地图显示他的位置。



我尝试过:



我已经拥有一个数据库,我知道如何加载用javascript映射,我知道如何加载引脚但我不知道如何从数据库加载引脚。这是一个使用实体框架的好方法。

I am new and i want to show in the google map locations from database,(lat , lng , city) the user search from a web form a city and then the map show him the location.

What I have tried:

I already have a database and i know how to load a map with javascript, i know how to load the pins but I don't know how to load pins from a database. It's a good way to use entity framework.

推荐答案

这是给你一个想法的一种方法



ASP.Net如何显示多个谷歌地图上的标记来自数据库| ASPForums.Net [ ^ ]



如果你googleasp.net show google map pins from database你'找到其他人。
Here's one method to give you an idea

ASP.Net How to show multiple markers on google maps from database | ASPForums.Net[^]

If you google "asp.net show google map pins from database" you'll find others.


这篇关于我如何从数据库中显示Google地图中的图钉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆