Hi there.

Firstly, I'm a newbie with little coding experience, but generally
able to modify code to suit a purpose.

I've spent days hunting for an example where someone has already done
something like this, but can't seem to find one.

What I'm trying to achieve is a map with a number of polylines (these
are pulled from a MySql Database using PHP into an XML). That's the
easy bit. What I actually want to be able to do is click on a line and
have it change colour, and then somehow I need to update the database
to say that it's colour has been changed. I already store the line
colour in the database, along with the name of the road, the encoded
polyline and the row id.

Here is the example as it stands:

http://www.bournvilleconservatives.com/temp/phpsqlajax_map_v3.html

the XML output can be seen in:

http://www.bournvilleconservatives.com/temp/phpsqlajax_genxml3.php

At the moment, it just seems to draw the whole map in one go, with all
the polylines at the same time. If I could find a way to build the map
up, line by line, that might help - as I'd then know how to address
each line.

If what I'm trying to acheive isn't viable, then my next option would
be to find a way to dynamically generate a list beside or below the
map with checkboxes that I could check, which would then (somehow)
change the line colour by running some more javascript.

The key to all of this is that it's database driven, and therefore has
to be dynamic because the query may alter which roads are returned
from the database, and therefore I can't hard code even the list of
roads or the checkboxes.

Please HELP!  it's driving me crazy.

Thanks.


Any thoughts or suggestions would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to