Free Balloon Map Markers (Google Maps etc)

November
12
2009

markersI had a bit of time to put together a set of balloon style markers for use in with Google maps API - or any maps API - or anywhere your imagination tells you. They're absolutely free for non commercial use so use them where ever you want. Theres 38 markers in all - the whole alphabet, some assorted symbols, six coloured icons - and a background shadow for use with all the markers.

Here is the complete set :

To use them with the google maps api see the Google Maps API documentation on overlays. Your javascript code would look something like this :

  1. var map = new GMap2(document.getElementById("map_canvas"));
  2. map.addControl(new GSmallMapControl());
  3. map.addControl(new GMapTypeControl());
  4. map.setCenter(new GLatLng(37.4419, -122.1419), 13);
  5.  
  6. // Create a base icon for all of our markers that specifies the shadow, icon dimensions, etc.
  7. var baseIcon = new GIcon(G_DEFAULT_ICON);
  8. baseIcon.image = "http://mysite.com/images/balloonmarkers/balloonmarkerred.png";
  9. baseIcon.shadow = "http://mysite.com/images/balloonmarkers/balloonmarkershadow.png";
  10. // our icons size is 79 × 98
  11. baseIcon.iconSize = new GSize(79, 98);
  12. // our shadow size is 137 × 98
  13. baseIcon.shadowSize = new GSize(137, 98);
  14. baseIcon.iconAnchor = new GPoint(70, 89);
  15. baseIcon.infoWindowAnchor = new GPoint(70, 89);
  16.  
  17.  
  18. // we'll put our marker in the center of the map
  19. var point = new GLatLng(37.4419, -122.1419);
  20. markerOptions = { icon:baseIcon };
  21. var marker = new GMarker(point, markerOptions);
  22.  
  23. map.addOverlay(marker);

You can use these markers with the simplemap module by putting them in your theme folder and configuring your simplemap.markers file.

  1. ; The default marker for all blocks
  2. [default]
  3. image-path=images/balloonmarkers/balloonmarkerred.png
  4. shadow-path=images/balloonmarkers/balloonmarkershadow.png
  5. iconanchor-x=70
  6. iconanchor-y=89
  7. infoanchor-x=70
  8. infoanchor-y=89

Please refer to the readme.txt within the zip file if you wish to use these icons commerically or use our contact form.

AttachmentSize
balloonmarkers.zip849.95 KB
Julian

COMMENTS

wow, awesome! thanks so much for sharing! remember how being a child I used to mark the places I visited or would like to visit on the map using simple plastic colour markers... right, times change!:) still must confess that I had some troubles while trying to use these icons. hopefully I'll solve them after reading some pieces of advice I found by torrent SE

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options