Click here to Skip to main content
Licence Ms-PL
First Posted 24 Jan 2008
Views 28,301
Downloads 1,681
Bookmarked 47 times

ASP.NET GoogleMap Control

By | 24 Jan 2008 | Article
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)

About the Author

Velio Ivanov

Web Developer

Bulgaria Bulgaria

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionSee it Online link gives 404 error.. PinmemberNitesh Luharuka0:12 29 Nov '11  
GeneralAmazing Pinmembermbaocha12:03 6 May '09  
GeneralExcellent Control Pinmembermyker23:25 24 Jan '08  
Generalnot an article... PinmemberSeishin#22:39 24 Jan '08  
GeneralRe: not an article... Pinmemberscallion0:40 4 Jul '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web04 | 2.5.120528.1 | Last Updated 25 Jan 2008
Article Copyright 2008 by Velio Ivanov
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid