fomur Posted November 26, 2008 Report Share Posted November 26, 2008 Hi, I am developing maps using chartFX extensions. Basically, I have one US map and one ZoomedState map. Whenever a state is clicked at US map, ZoomedState map loads clicked state on the USmap. I want to paint some states with different colors and I can do that by using the following sample code. tempRegion = USMap.FindMapRegion("CA");USChart.Points[tempRegion.Point].Color = Color.PaleGoldenrod; However, when I want to do same thing with ZoomedState map it does not work. I am using 3-Zip code maps for showing ZoomedState map and want to paint specific ZIP regions with a different color. So when I use following code after NY 3-Zip code loaded to ZoomedState map it does not change color. tempRegion = CountyMap.FindMapRegion("127");countyChart.Points[tempRegion.Point].Color = Color.PaleGoldenrod; When I debug my code, I have seen that when first code is executed it returns correct point code for California which is 3. However, when I execute the second code it returns -1 as a point value for 127 zip code. Can you help me out that where am I doing a mistake? Thanks... Quote Link to comment Share on other sites More sharing options...
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.