mapIconMaker

739 views
Skip to first unread message

scotty

unread,
Nov 19, 2009, 1:58:24 PM11/19/09
to Google Maps JavaScript API v3
Does MapIconMaker work with Google Map API version 3? I can't seem to
get it to work. When I call:

var newIcon = MapIconMaker.createLabeledMarkerIcon({label: "m",
primaryColor: "#00ff00"})

It keeps plotting a red marker with a black square in it.

Please help, thanks

Susannah (Google Employee)

unread,
Nov 23, 2009, 7:05:39 PM11/23/09
to Google Maps JavaScript API v3
MapIconMaker currently only supports v2. It should be fairly simple
to port to v3, though it'll need to return separate MarkerImage
objects for the icon and the shadow.

Take a look at these relevant documents:
contributing to the v3 library: http://code.google.com/p/google-maps-utility-library-v3/wiki/HowToContribute
v2 version: http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/1.0/docs/examples.html
v3 MarkerImage: http://code.google.com/apis/maps/documentation/v3/reference.html#MarkerImage

I'd port this for you, but I'm going to work on all those feature
requests today :).
-Susannah

Nhat Minh

unread,
Nov 24, 2009, 10:13:38 PM11/24/09
to google-map...@googlegroups.com
I think this Example from Google may be useful (Map API Version 3):
var image = 'beachflag.png';
 
var myLatLng = new google.maps.LatLng(-33.890542, 151.274856);
 
var beachMarker = new google.maps.Marker({
      position
: myLatLng,
      map
: map,
      icon
: image
 
});

I use 'beachflag.png' in an directory where I put my index file.
You can find it here.
Good luck!


--

You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=.



scott Sheck

unread,
Nov 24, 2009, 10:18:10 PM11/24/09
to google-map...@googlegroups.com, google-map...@googlegroups.com
Mapiconmaker is valuable in that you Can create dynamically generated markers. Check it out!   

* Sent from my iPhone *
Scott Sheck

For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Zach

unread,
Dec 26, 2009, 10:37:13 PM12/26/09
to Google Maps JavaScript API v3
I'm also interested in a version of MapIconMaker for v3. I took a look
at porting it, but it looks non-trivial.

The icon itself is easy, but I'm not sure how to handle all of the
print-related properties (which don't appear to be supported in v3) or
the shadow (in the existing code, no value is provided for the shadow
property, but in v3 it appears to be required).

Anyone have any ideas on handling those properties?

Regards,
Zach

On Nov 23, 7:05 pm, "Susannah (Google Employee)"


<susann...@google.com> wrote:
> MapIconMaker currently only supports v2.  It should be fairly simple
> to port to v3, though it'll need to return separate MarkerImage
> objects for the icon and the shadow.
>
> Take a look at these relevant documents:

> contributing to the v3 library:http://code.google.com/p/google-maps-utility-library-v3/wiki/HowToCon...
> v2 version:http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/1....
> v3 MarkerImage:http://code.google.com/apis/maps/documentation/v3/reference.html#Mark...

Reply all
Reply to author
Forward
0 new messages