On Wed, Nov 17, 2010 at 20:04, Scott H <[email protected]> wrote:

> I've been reviewing the options for dynamic pins at
> http://code.google.com/apis/chart/docs/gallery/dynamic_icons.html#pins
> and can't seem to figure out a URL that meets all my needs.  I think
> the chst=d_map_spin is closest, but cannot figure out one thing.  I
> need to be able to set...
> - primary color (they all seem to handle this)
> - size (the scalable pins seem to be the only way to go)
> - text label (I am still good with the scalable pins)
> - font size (I am still good with the scalable pins)
> - font color( d'oh! I want a way to use white font if I think it will
> look better)
>
> Check out the URL below.  It's SO close to what I need, but cannot
> figure out a way to get the font white.  Perhaps there is an
> undocumented hack?
>
> http://chart.apis.google.com/chart?chst=d_map_spin&chld=2.1|0|FF8429|13|b|123<http://chart.apis.google.com/chart?chst=d_map_spin&chld=2.1%7C0%7CFF8429%7C13%7Cb%7C123>
>
> Alternative:
> Going through the MapIconMaker code, I found an example more like
> below.  From what I've read, this is more of an internal-to-Google
> used way of doing it.  I got most of the URL figured out, but cannot
> figure out how to set width and height **in the URL**
>
>
> http://chart.apis.google.com/chart?cht=d&chdp=mapsapi&chl=pin'i\'[10'-3'f\hv'a\]h\]o\0a859c'fC\ffffff'tC\000000'eC\Lauto'f\&ext=.png<http://chart.apis.google.com/chart?cht=d&chdp=mapsapi&chl=pin%27i%5C%27[10%27-3%27f%5Chv%27a%5C]h%5C]o%5C0a859c%27fC%5Cffffff%27tC%5C000000%27eC%5CLauto%27f%5C&ext=.png>
>

Hi Scott,

Glad that you were able to make it that far! Unfortunately, as you've
already found out, there is no way, using "chst", to get the results that
you want.
There is, indeed, an undocumented hack; please try a URL like this one:
http://chart.apis.google.com/chart?cht=d&chdp=public&chld=2.1|0|FF8429|15|b|00FFFF|123&chl=[v_maps_pin%270r\0r\1r\vi%27\2r\fC\[6..%27r\]ha\V\[=%273r\]sc%27\f\4r\f\5r\tC\va\]o\ba\<http://chart.apis.google.com/chart?cht=d&chdp=public&chld=2.1%7C0%7CFF8429%7C15%7Cb%7C00FFFF%7C123&chl=%5Bv_maps_pin%270r%5C0r%5C1r%5Cvi%27%5C2r%5CfC%5C%5B6..%27r%5C%5Dha%5CV%5C%5B=%273r%5C%5Dsc%27%5Cf%5C4r%5Cf%5C5r%5CtC%5Cva%5C%5Do%5Cba%5C>
where the contents of the "chld" argument are the same as for "d_map_spin",
except that there's a new value in the 6th position that is the text color.
There is another solution that is similar to what you found with the
MapIconMaker, but I think that this one is easier to use because the data is
separate.

Happy charting!

--Roger



>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-chart-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-chart-api?hl=en.
>
>


-- 
*Google Switzerland GmbH  - Identifikationsnummer: CH-020.4.028.116-1

***

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to