Project Description
Wraps Google Maps API as ASP.NET custom control. Offers extremely easy and fast way of adding Google Maps API support on your ASP.NET pages. Features
- ASP.NET AJAX (under UpdatePanel) enabled;
- Loading by Geocoding or Latitude/Longitude;
- Google Map Marker(s);
- set by Geocoding or Latitude/Longitude;
- simple text for the info window;
- InfoWindowContent template for adding any html and asp.net controls to markers' info window;
- Dragable;
- Custom Icons;
- OpenInfoBehaviour - to change the default behaviour of opening info window on marker click (available: Click, DoubleClick, MouseDown, MouseOut, MouseOver, MouseUp);
- Polylines;
- Polygons;
- Traffic Overlays;
- Driving Directions (look at the sample page for the issue with localhost usage);
- Capture map click point position;
- GoogleBar for address search on the maps;
- Marker Manager for maps with a lot of markers;
- Goecoding locations caching and persistence on postback for map and markers;
- DefaultView control property to manage the map initial view with support to all google map types since Google API 2.9 (Normal, Satellite, Hybrid, Physical, MoonElevation, MoonVisible, MarsElevation, MarsVisible, MarsInfrared, SkyVisible);
- GoogleMap Events client-side/server-side handling;
- GoogleMarker Events client-side/server-side handling;
- Static Map as image that can be saved;
- Circle Polygon - you can easy add circle polygons to the GoogleMap control;
- Data Binding - you can set any supported DataSource to GoogleMap control for binding markers to data;
- Actions - server-side methods fire client-side code invokation, for example you can call GoogleMap1.OpenInfoWindowHtml method of GoogleMap which will open an info window on client-side when map is loaded;
Known Issues
- When using Google Maps on localhost they can work with not 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). Check out next discussion: Getting around the Google API Key Issue on localhost
- When using GoogleMap control inside ASP.NET AJAX TabPanel you have to set size of the control in pixels (not in percents) in order to get control working properly;
- Static map will not work on localhost. Check out Getting around the Google API Key Issue on localhost ;
- The max size of the static map is 512x512. Code cuts it if is greater, otherwise static map will not work;
- Only markers are supported for static map - no traffic, no overlays, no directions etc. This is like it is - that's just provided by Google Maps API. There is no as I can see so far support for custom makers icons as well. So, the standard markers' icons are used only on the static map;
- If you want to show polylines on your map (like the lines used by Google Maps to show driving directions), you need to include the VML namespace in your XHTML document to make everything work properly in Internet Explorer. The beginning of your XHTML document should look like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
Future enhancements
- Advanced marker data binding with template;
- Labeled Markers and switching (show/hide) by label;
- Google Map Overlays support;
- Google Map Controls support;
- Google Polygon Events support;
- Google Polyline Events support;
Downloads
Help Topics
News
Project Links
Team Blogs
Happy coding ...
Last edited Dec 18 2008 at 9:03 AM by velio, version 92
|
|