The code of egeoxml is 'visible' so you can tweak it. Just make it
load icons via MapIconMaker when it creates the marker. You might need
to also extend egeoxml  to parse the style - havent looked if it can
do that or not.

In fact from a quick look at the code it looks like you can pass in
your own createmarker function - one that uses MapIconMaker - which
should solve your problem.



On Sun, Sep 21, 2008 at 5:20 PM, Coops <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've a map set up, which plots points taken from a database. This is
> done with a PHP script which takes the points from a MySQL dbase and
> produces a KML file, which is in turn read by my google map with
> EGeoXml.
>
>  http://blog.coopersphotos.co.uk/livemap/index.php?tag=PHR
>
> This is working fine. However to improve the system I want to colour
> code the points by date (a gradient). I already have done what I
> thought would be the hard bit, writing a system to calculate the
> colour gradient and produce the correct hex codes for each of the
> points.
>
> But from what I've found you can't simply set the colour of a marker,
> is has to be an pre-defined icon. So I came across MapIconMaker on the
> API blog which seemed to be exactly what I needed, except it works in
> the actual gmap javascript, not on the KML.
>
> Is there a nice solution to this problem? I considered perhaps using
> PHP-GD and dynamically creating the icon for each point but haven't
> used GD before and saw no immediate solution using it on google.
>
> Cheers.
>
> Coops.
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to