Vrishali....
2009-Feb-20 04:19 UTC
How to change Image of Markers in google map mashup???????????
Hi!!!!!!!!!! I am working on google map mashup. I tried to display the markers for four locations and its getting displayed. But these markers''s image is default image by google. (balloon shaped image) Now i want to put my own image as marker, So can anybody plz tell me how it can be done????????? The code i follow for creating marker is, function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } Please Help Me!!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Kottom
2009-Feb-20 08:25 UTC
Re: How to change Image of Markers in google map mashup???????????
This is a question about the GMaps API, nothing to do with Rails. http://code.google.com/apis/maps/documentation/overlays.html#Custom_Icons http://groups.google.com/group/Google-Maps-API On Fri, Feb 20, 2009 at 5:19 AM, Vrishali.... <vrish273-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi!!!!!!!!!! > > > I am working on google map mashup. I tried to display the markers for > four locations and its getting displayed. > But these markers''s image is default image by google. (balloon shaped > image) > Now i want to put my own image as marker, > So can anybody plz tell me how it can be done????????? > > > The code i follow for creating marker is, > > function createMarker(point,html) { > var marker = new GMarker(point); > GEvent.addListener(marker, "click", function() { > marker.openInfoWindowHtml(html); > }); > return marker; > } > > > Please Help Me!!!! > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Vrishali....
2009-Feb-21 10:30 UTC
Re: How to change Image of Markers in google map mashup???????????
Ok Thannks.....I have joined that group also...N i got help from that... Thanks for support. On Feb 20, 1:25 pm, Chris Kottom <chris.kot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is a question about the GMaps API, nothing to do with Rails. > > http://code.google.com/apis/maps/documentation/overlays.html#Custom_I...http://groups.google.com/group/Google-Maps-API > > On Fri, Feb 20, 2009 at 5:19 AM, Vrishali.... <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi!!!!!!!!!! > > > I am working on google map mashup. I tried to display the markers for > > four locations and its getting displayed. > > But these markers''s image is default image by google. (balloon shaped > > image) > > Now i want to put my own image as marker, > > So can anybody plz tell me how it can be done????????? > > > The code i follow for creating marker is, > > > function createMarker(point,html) { > > var marker = new GMarker(point); > > GEvent.addListener(marker, "click", function() { > > marker.openInfoWindowHtml(html); > > }); > > return marker; > > } > > > Please Help Me!!!!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sazima
2009-Feb-21 18:33 UTC
Re: How to change Image of Markers in google map mashup???????????
Vrishali, There are instructions for that in GMaps: - http://code.google.com/apis/maps/documentation/overlays.html#Custom_Icons - http://code.google.com/apis/maps/documentation/reference.html#GMarker Cheers, Sazima On Feb 21, 7:30 am, "Vrishali...." <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok Thannks.....I have joined that group also...N i got help from > that... > > Thanks for support. > > On Feb 20, 1:25 pm, Chris Kottom <chris.kot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > This is a question about the GMaps API, nothing to do with Rails. > > >http://code.google.com/apis/maps/documentation/overlays.html#Custom_I... > > > On Fri, Feb 20, 2009 at 5:19 AM, Vrishali.... <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi!!!!!!!!!! > > > > I am working on google map mashup. I tried to display the markers for > > > four locations and its getting displayed. > > > But these markers''s image is default image by google. (balloon shaped > > > image) > > > Now i want to put my own image as marker, > > > So can anybody plz tell me how it can be done????????? > > > > The code i follow for creating marker is, > > > > function createMarker(point,html) { > > > var marker = new GMarker(point); > > > GEvent.addListener(marker, "click", function() { > > > marker.openInfoWindowHtml(html); > > > }); > > > return marker; > > > } > > > > Please Help Me!!!!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sazima
2009-Feb-21 18:37 UTC
Re: How to change Image of Markers in google map mashup???????????
http://code.google.com/apis/maps/documentation/reference.html#GIcon Cheers, Sazima On Feb 21, 3:33 pm, Sazima <rsaz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Vrishali, > > There are instructions for that in GMaps: > > -http://code.google.com/apis/maps/documentation/overlays.html#Custom_I... > > -http://code.google.com/apis/maps/documentation/reference.html#GMarker > > Cheers, Sazima > > On Feb 21, 7:30 am, "Vrishali...." <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Ok Thannks.....I have joined that group also...N i got help from > > that... > > > Thanks for support. > > > On Feb 20, 1:25 pm, Chris Kottom <chris.kot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > This is a question about the GMaps API, nothing to do with Rails. > > > >http://code.google.com/apis/maps/documentation/overlays.html#Custom_I... > > > > On Fri, Feb 20, 2009 at 5:19 AM, Vrishali.... <vrish...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi!!!!!!!!!! > > > > > I am working on google map mashup. I tried to display the markers for > > > > four locations and its getting displayed. > > > > But these markers''s image is default image by google. (balloon shaped > > > > image) > > > > Now i want to put my own image as marker, > > > > So can anybody plz tell me how it can be done????????? > > > > > The code i follow for creating marker is, > > > > > function createMarker(point,html) { > > > > var marker = new GMarker(point); > > > > GEvent.addListener(marker, "click", function() { > > > > marker.openInfoWindowHtml(html); > > > > }); > > > > return marker; > > > > } > > > > > Please Help Me!!!!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---