user1794601
user1794601

Reputation: 39

Loading lat and long from SQL Database into google maps

I want to modify my asp.net application to open a google maps location from a hyperlink (https://maps.google.com/maps/ms? msid=217765347979644002223.00048600fdc1ccf2d2d55&msa=0). I need to retrieve the lat, and longitude from a db table I already have and dynamically input them into the link above. My goal is basically to have the user click on the link it, it retrieves the lat, long, from the table, and returns or opens the google maps link via web browser.

Upvotes: 2

Views: 2088

Answers (1)

GraemeMiller
GraemeMiller

Reputation: 12253

Maybe not exactly what you are looking for but this is a good article on how to create a mvc display template for spatial db type using google maps http://www.hanselman.com/blog/ASPNETMVCDisplayTemplateAndEditorTemplatesForEntityFrameworkDbGeographySpatialTypes.aspx

Upvotes: 1

Related Questions