Click here to Skip to main content
15,885,309 members
Articles / Web Development / ASP.NET

ASP.NET GoogleMap Control

Rate me:
Please Sign up or sign in to vote.
2.48/5 (10 votes)
24 Jan 2008Ms-PL2 min read 55.5K   4.1K   49   5
Wraps Google Maps API as ASP.NET custom control

Introduction

This article discusses how to wrap Google Maps API as an ASP.NET custom control.
It offers an extremely easy and fast way of adding Google Maps API support on your ASP.NET pages.

Project Home Page

Features

  • Setting the Size
  • Easy way to setup an issued Google Map API key
  • Geocoding or Latitude/Longitude center point of the map
  • Zoom factor of the map
  • Google Map Marker(s), with formatted text, using Geocoding or Latitude/Longitude
  • Traffic Overlays
  • Driving Directions (look at the sample page for the issue with localhost usage)
  • Works with ASP.NET AJAX (under UpdatePanel)
  • Capture map click point position
  • GoogleBar for address search on the maps

Known Issues

  • When using Google Maps on localhost, they can work without properly obtained keys (even that given in the samples here), but in order to work without problems, you have to obtain a key for the desired domain.
  • Driving direction will not appear on localhost, but on the public site/domain for which you have obtained the key, they will be shown properly. (That is probably protection or security issue of Google Maps API.)

Using the Code

Points of Interest

Homepage

Downloads

History

  • 24.Jan.2008 - Releases 2.5 and 3.0 are in the queue now, check out the features coming up
  • 3.Jan.2008 - Release 2.0 has been published
  • 19.Dec.2007 - Source code is on Codeplex now

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Web Developer
Bulgaria Bulgaria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionSee it Online link gives 404 error.. Pin
Nitesh Kejriwal29-Nov-11 0:12
professionalNitesh Kejriwal29-Nov-11 0:12 
GeneralAmazing Pin
mbaocha6-May-09 12:03
mbaocha6-May-09 12:03 
GeneralExcellent Control Pin
myker24-Jan-08 23:25
myker24-Jan-08 23:25 
Thanks for this! Your examples are well written and the control is amazingly simple to use!
Generalnot an article... Pin
Seishin#24-Jan-08 22:39
Seishin#24-Jan-08 22:39 
GeneralRe: not an article... Pin
scallion4-Jul-09 0:40
scallion4-Jul-09 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.