Jump to content
Software FX Community

Finding correct points problem...


fomur

Recommended Posts

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...

 

 

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...