5 messages in com.googlegroups.google-mashup-editorRe: How to: colored markers?| Subject: | Re: How to: colored markers?![]() |
|---|---|
| From: | lcp (lela...@gmail.com) |
| Date: | 03/28/2008 04:00:19 PM |
| List: | com.googlegroups.google-mashup-editor |
Hi Jason,
I've tried to follow all the threads and examples in this forum on adding custom markers but I'm having some trouble understanding how to do this within GME.
In the thread you reference below, your code example changes a marker from red to green when clicked on. But in the code I only see the blue blank png icon referenced. If I change that url to one of the other gmaps markers under ..svn/trunk/markers/ nothing changes - the markers are still red, then green when clicked.
It seems like the person in the thread you reference below was able to put in custom icons - but I'm not sure how to copy his code into GME to try it.
Thanks for the help,
Lela
On Feb 13, 11:15 am, Jason <gmej...@google.com> wrote:
Hi Valery. If you want to take advantage of the GMarker class'
setImage() method within your mashup, you will have to add yourmarkersto the map
using the Maps API rather than relying on GME to
place them for you.
http://groups.google.com/group/google-mashup-editor/browse_thread/thr...
The following thread contains an example of how to do this. You would have to modify it slightly to set a new image depending on the value of the corresponding entry's field, but it should help you get started.
Happy mashing! - Jason
On Feb 11, 3:27 pm, Valery35 <xbbs...@gmail.com> wrote:
How to make colored by field value (gm:select) GMapsmarkers?




