marker color

1,967 views
Skip to first unread message

Danil Smirnov

unread,
Oct 3, 2009, 12:05:17 PM10/3/09
to Google Maps JavaScript API v3
Hi there! Is it some way to change a color of the default marker icon?
Thanks!

Esa

unread,
Oct 3, 2009, 8:41:38 PM10/3/09
to Google Maps JavaScript API v3


On Oct 3, 7:05 pm, Danil Smirnov <danil.smir...@gmail.com> wrote:
> Hi there! Is it some way to change a color of the default marker icon?
> Thanks!

Google Maps API v3 provides the best facilities of all the map apies
for color changing.
http://code.google.com/apis/maps/documentation/v3/reference.html#MarkerImage

pamela (Google Employee)

unread,
Oct 4, 2009, 1:44:25 AM10/4/09
to google-map...@googlegroups.com
In particular, this demo shows replacing a color upon mouse-over:

You will need to find an image for the desired color, and as Esa indicated, you can then use MarkerImage to use that instead.

- pamela

Dave

unread,
Oct 4, 2009, 12:35:08 PM10/4/09
to Google Maps JavaScript API v3
There is an undocumented set of code provided by Google that provides
details of 3 types of symbols available from Google:

Standard markers with the facility to have two fill colours and
different coloured boundary
Circles with embedded labels
Markers with shaddows and an embedded label.

As far as I know Google have not provided any documentation for this
facility that forms part of the Google Charts API, however they do
provide the source at
http://code.google.com/p/gmaps-utility-library/source/browse/trunk/mapiconmaker/?r=124#mapiconmaker/1.1
which contains the Javascript to set the parameters.

Pamela - please could you provide some clarification concerning
providing documentation for this facility and its status as I cannot
find any documentation on the google site for this API. Indeed if you
do a search on "cht=itr" you get no responses.

Regards

Dave
On Oct 4, 6:44 am, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> >http://code.google.com/apis/maps/documentation/v3/reference.html#Mark...- Hide quoted text -
>
> - Show quoted text -

pamela (Google Employee)

unread,
Oct 4, 2009, 7:22:30 PM10/4/09
to google-map...@googlegroups.com
Hi Dave-

The Chart API team documented it here:

It hasn't made it into the Google Code docs, but you may use it.

- pamela

Dave

unread,
Oct 6, 2009, 5:28:52 AM10/6/09
to Google Maps JavaScript API v3
Hi Pamela

There seems to be TWO sets of marker/map symbol facilities. The
documented version which you have provided the URL for (thanks), and
an undocumented version used by the above code in the URL I quoted
above). The unpublished version includes the following extra
facilities:
a) The ability to define the symbol size
b) Some extra symbols (circles and rounded-squares).

Does Google have any plans to provide documentation for this second
interface, or should it be not used as it is no longer supported?

Thanks

Dave
On Oct 5, 12:22 am, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> Hi Dave-
> The Chart API team documented it here:http://groups.google.com/group/google-chart-api/web
>
> <http://groups.google.com/group/google-chart-api/web>It hasn't made it into
> the Google Code docs, but you may use it.
>
> - pamela
>
> On Mon, Oct 5, 2009 at 3:35 AM, Dave <davewp...@googlemail.com> wrote:
>
> > There is an undocumented set of code provided by Google that provides
> > details of 3 types of symbols available from Google:
>
> >    Standard markers with the facility to have two fill colours and
> > different coloured boundary
> >    Circles with embedded labels
> >    Markers with shaddows and an embedded label.
>
> > As far as I know Google have not provided any documentation for this
> > facility that forms part of the Google Charts API, however they do
> > provide the source at
>
> >http://code.google.com/p/gmaps-utility-library/source/browse/trunk/ma...
> > which contains the Javascript to set the parameters.
>
> > Pamela - please could you provide some clarification concerning
> > providing documentation for this facility and its status as I cannot
> > find any documentation on the google site for this API.  Indeed if you
> > do a search on "cht=itr" you get no responses.
>
> > Regards
>
> > Dave
> > On Oct 4, 6:44 am, "pamela (Google Employee)" <pamela...@gmail.com>
> > wrote:
> > > In particular, this demo shows replacing a color upon mouse-over:
> >http://gmaps-samples-v3.googlecode.com/svn/trunk/localsearch/places.html
>
> > > You will need to find an image for the desired color, and as Esa
> > indicated,
> > > you can then use MarkerImage to use that instead.
>
> > > - pamela
>
> > > On Sun, Oct 4, 2009 at 11:41 AM, Esa <esa.ilm...@gmail.com> wrote:
>
> > > > On Oct 3, 7:05 pm, Danil Smirnov <danil.smir...@gmail.com> wrote:
> > > > > Hi there! Is it some way to change a color of the default marker
> > icon?
> > > > > Thanks!
>
> > > > Google Maps API v3 provides the best facilities of all the map apies
> > > > for color changing.
>
> >http://code.google.com/apis/maps/documentation/v3/reference.html#Mark...quoted text -

pamela (Google Employee)

unread,
Oct 6, 2009, 5:39:35 AM10/6/09
to google-map...@googlegroups.com
Anything that MapIconMaker uses is fine to use. The Charts API team approved their use.

- pamela
Reply all
Reply to author
Forward
0 new messages