lichtjiang
Programmer
I want to write a javascript to display a outline state map such that different states are filled with different color in a web browser such as IE and FireFox.
What I am thinking is as this:
1st, display blank outline state map as a map (.gif?). Blank outline state map is one that has contour for each state with no color filled.
2nd, for all states, make a list of coordinates of its center point.
3rd, call javascript to fill each state from center point with given coords.
So, this is to create colored state map from client browser instead of from server side.
Is this doable and could someone give me some hints? Or is there some existing codes for doing this in a similar or better way?
Thanks a lot!
What I am thinking is as this:
1st, display blank outline state map as a map (.gif?). Blank outline state map is one that has contour for each state with no color filled.
2nd, for all states, make a list of coordinates of its center point.
3rd, call javascript to fill each state from center point with given coords.
So, this is to create colored state map from client browser instead of from server side.
Is this doable and could someone give me some hints? Or is there some existing codes for doing this in a similar or better way?
Thanks a lot!