Subscribe

  • Subscribe  

Google Released MapIconFactory Code for Better Map Mashup

Posted by Charles | March 27, 2008 .

Google Map as the best GeoWeb visualization client and the AJAX RIA pioneer is constantly gotten infusion of UI goodies from Goolge Map API people. This week they put the MapIconMakerFactory 1.0 to Google Code.

The MapIconFactory is actually a JavaScript library that can be used in conjunction with regular GMap API. What you need to do is very simple as the following code shows:

 <script src="mapiconfactory.js" type="text/javascript"></script>
 
 ...
 
  var map = new GMap2(document.getElementById("map"));
  map.setCenter(new GLatLng(37.441944, -122.141944), 13);
  var newIcon = MapIconFactory.createMarkerIcon({width: 64, height: 64, primaryColor: "#00ff00"});
  var marker = new GMarker(map.getCenter(), {icon: newIcon});
  map.addOverlay(marker);

It gives a more attractive way to visualize location information. The above code generate the marker looks like this:

mapiconfactory Google Released MapIconFactory Code for Better Map Mashup

In case you are interested in GeoWeb, there are other utilities in the GMaps Utility Library at Google Code, there are: MarkerManager, DragZoomControl, LabeledMarker, ExtMapTypeControl, ExtInfoWindow and MarkerTracker.

Leave a Comment

If you would like to make a comment, please fill out the form below.


Name

Email

Website

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comments

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Related Posts

2 Comments so far
  1. Pamela Fox  March 28, 2008 5:28 pm

    Hi Charles,

    MapIconFactory was renamed to MapIconMaker and the links have changed. Do you mind updating your post?

    New link would be: http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/

    Glad you like it!

  2. Guido  March 29, 2008 9:14 am

    Another resource for map icons with more functionality (‘freemium’):

    http://www.cartosoft.com/mapicons

<

Error. Page cannot be displayed. Please contact your service provider for more details. (5)


Direct TV Offers - usdirect has the best directtv deals