I'm working on a data page that maps police calls, which fall under about 8 categories (burglary, vehicle theft, assault, etc.) In the data table, I added a column that has a number corresponding to one of the map pointer styles in the mashup code (i.e. assault is 1, burglary 2, etc.) In my mashup code, rather than choosing a specific number, I use the variable for the field in the table. Here's the code:
This works fine if I search on and display a single crime category -- assaults come up with one color pointer, burglaries a different color pointer, and so forth. But if I display all crimes at the same time, all the pointers are the same color. In other words, it doesn't loop the way the information bubble does based on the ID and color each pointer depending on the number in that field.
Is there a way around this, perhaps through JavaScript?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
mdupras
Hi all --
I'm working on a data page that maps police calls, which fall under about 8 categories (burglary, vehicle theft, assault, etc.) In the data table, I added a column that has a number corresponding to one of the map pointer styles in the mashup code (i.e. assault is 1, burglary 2, etc.) In my mashup code, rather than choosing a specific number, I use the variable for the field in the table. Here's the code:
This works fine if I search on and display a single crime category -- assaults come up with one color pointer, burglaries a different color pointer, and so forth. But if I display all crimes at the same time, all the pointers are the same color. In other words, it doesn't loop the way the information bubble does based on the ID and color each pointer depending on the number in that field.
Is there a way around this, perhaps through JavaScript?
Thanks!
-- Mike
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.