Database driven Google Maps question

MBony

Platinum Member
Sep 16, 2003
2,990
0
76
I have a php/mysql database of people and their physical address as well as some misc. information about them (example=what color car they drive). I want users to be able to only display certain color cars at a time on the map(example=i only want to see the people who have red cars, then maybe red and blue cars). So maybe have a checkbox to the side with the different colors, but how do i make a color disappear when it is unchecked?

I'm sorry if I'm not explaining this better. Please ask me a question if confused.
 

lozina

Lifer
Sep 10, 2001
11,711
8
81
Isn't it just a matter of creating a GMarker for each person, and then adding/removing them based on your checkbox events?
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Originally posted by: lozina
checkbox events?

I'm not familiar with google maps, but do look up on this. When anyone clicks on your check-box, it should generate an event that you can catch. The first thing you'll need to do is read the status of the check-box. After that, it shouldn't be too hard to get the rest done.

-cd