Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I am presently working on a Windows form application in SharpDevelop that connects to a PostgreSQL database and queries a bunch of information to display on a datagridview.

There is information on my database that has cities and their geographical coordinates. I would like to show these coordinates on a map every time a datagridview is generated along with the data.

Keeping in mind that the datagridview will display only the city names and the coordinates will have to be fetched from the database.

How can this be done?

Any help would be greatly appreciated :)
Posted

1 solution

Probably you would have to use an third party service like google maps or bind maps services, but, show only one map at the time, the user probably dont need to see all the maps at the same time, and of course, this would be more efficient.

Since you are using windows forms, maybe you can use the browser control to display a new window with the map:

For example, this will show a little map according to some LAT and LONG coordinates:

<img src="http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-47.91378&zoom=11&size=200x200&sensor=false">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900