Click here to Skip to main content
13,297,266 members (66,930 online)
Click here to Skip to main content
Add your own
alternative version


49 bookmarked
Posted 24 Jan 2008

ASP.NET GoogleMap Control

, 24 Jan 2008
Rate this:
Please Sign up or sign in to vote.
Wraps Google Maps API as ASP.NET custom control


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


  • 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




  • 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


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


About the Author

Velio Ivanov
Web Developer
Bulgaria Bulgaria
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionSee it Online link gives 404 error.. Pin
Nitesh Luharuka29-Nov-11 1:12
memberNitesh Luharuka29-Nov-11 1:12 
GeneralAmazing Pin
mbaocha6-May-09 13:03
membermbaocha6-May-09 13:03 
GeneralExcellent Control Pin
myker25-Jan-08 0:25
membermyker25-Jan-08 0:25 
Generalnot an article... Pin
Seishin#24-Jan-08 23:39
memberSeishin#24-Jan-08 23:39 
GeneralRe: not an article... Pin
scallion4-Jul-09 1:40
memberscallion4-Jul-09 1: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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 25 Jan 2008
Article Copyright 2008 by Velio Ivanov
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid