Jump to content
Software FX Community

Question with mapping


User (Legacy)

Recommended Posts

Hello,

I am researching mapping software to integrate into my .net winforms

program. I would like to be able to send 2 different numbers per county or

zip area to the map and represent one of the numbers as a color (like your

temperature example on the web), and the other number as text on top of the

area. Also, in the U.S. do you have only full state maps, or do you also

have maps which only show parts of a state, like Western Pennsylvania, for

instance instead of all Pennsylvania?

Thanks in advance

Burton Roberts

Link to comment
Share on other sites

If I send two values to associate with each region I have defined on the

map, will I be able to represent one number as a color, and the other

number as a number printed on the area? My client is asking for this.

Thanks

Burton Roberts

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:nnP4Oyn8DHA.1816@webserver3.softwarefx.com...

> We have an extensive library of maps including US States, Zip Codes,

> Counties, etc.

>

> You can also provide your own map using an SVG file complying with certain

> specifications.

>

> You can turn labels on/off in a per-region basis (say state if your

regions

> are states or county, etc.).

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

The coloring of the regions is a central part of the Maps Extension. You can

color regions yourself using PointAttributes or SeriesAttributes, or you can

have them colored automatically using ConditionalAttributes,

conditionalAttributesCallback, or the WinnerCallback. The last three

involve you providing and algorithim to decide which color to provide for

each region. Range, Max, Min, custom....

Regarding the second desired piece of Data we have opened up the API for you

to be able to do this:

Essentially, you would need to find each MapRegion Object and add another

AnnotationText object to the AnnotationObjectsList whose Text is exactly

the Number you need to display.

One way is to loop through the VisibleMapRegions of the Map and add an

AnnotationText with the value you insert into the MapData. Another way is to

use the FindMapRegion functions of the API

This is Essentially the VisibleMapRegions Algorithim you would need!

For Each oMapRegion In oMap.VisibleMapRegions

' Get the Data for the Region that sets the first Series

Dim dVal As Double

dVal = oMap.MapData.Item(1, oMapRegion.Point())

' Create a new AnnotationText Object

Dim annText As AnnotationText = Nothing

annText = New Annotation.AnnotationText

' Set the Tex to your value

annText.Text = dVal.ToString

annText.Visible = True

' Assign the left coord as the same as the Label Text

annText.Left = oMapRegion.Text.Left

' Assign the top coord as 50 higher so should be no conflicts!

annText.Top = oMapRegion.Text.Top - 50

' Add this AnotationTextObject to the Maps List

oMap.AnnotationObjectsList.Add(annText)

' Refresh

annText2.Refresh()

Next

If you cannot figure this our or have problems please feel free to contact

us at support@softwarefx.com and we can solve your issue with you. I do not

see what you need as being a problem just a few hickups along the way!

Enjoy!

-cjs

"Burton Roberts" <bhroberts@adelphia.net> wrote in message

news:oiq2NEB9DHA.196@webserver3.softwarefx.com...

> If I send two values to associate with each region I have defined on the

> map, will I be able to represent one number as a color, and the other

> number as a number printed on the area? My client is asking for this.

> Thanks

> Burton Roberts

>

>

> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

> news:nnP4Oyn8DHA.1816@webserver3.softwarefx.com...

> > We have an extensive library of maps including US States, Zip Codes,

> > Counties, etc.

> >

> > You can also provide your own map using an SVG file complying with

certain

> > specifications.

> >

> > You can turn labels on/off in a per-region basis (say state if your

> regions

> > are states or county, etc.).

> >

> > --

> > FP

> > Software FX

> >

> >

>

>

Link to comment
Share on other sites

Thanks,

Given we can do this we will probably be back with a purchase

Burton Roberts

"Software FX Support" <support@softwarefx.com> wrote in message

news:5R%23oG%23J9DHA.196@webserver3.softwarefx.com...

> The coloring of the regions is a central part of the Maps Extension. You

can

> color regions yourself using PointAttributes or SeriesAttributes, or you

can

> have them colored automatically using ConditionalAttributes,

> conditionalAttributesCallback, or the WinnerCallback. The last three

> involve you providing and algorithim to decide which color to provide for

> each region. Range, Max, Min, custom....

>

> Regarding the second desired piece of Data we have opened up the API for

you

> to be able to do this:

> Essentially, you would need to find each MapRegion Object and add another

> AnnotationText object to the AnnotationObjectsList whose Text is exactly

> the Number you need to display.

> One way is to loop through the VisibleMapRegions of the Map and add an

> AnnotationText with the value you insert into the MapData. Another way is

to

> use the FindMapRegion functions of the API

>

> This is Essentially the VisibleMapRegions Algorithim you would need!

>

> For Each oMapRegion In oMap.VisibleMapRegions

> ' Get the Data for the Region that sets the first Series

> Dim dVal As Double

> dVal = oMap.MapData.Item(1, oMapRegion.Point())

> ' Create a new AnnotationText Object

> Dim annText As AnnotationText = Nothing

> annText = New Annotation.AnnotationText

> ' Set the Tex to your value

> annText.Text = dVal.ToString

> annText.Visible = True

> ' Assign the left coord as the same as the Label Text

> annText.Left = oMapRegion.Text.Left

> ' Assign the top coord as 50 higher so should be no conflicts!

> annText.Top = oMapRegion.Text.Top - 50

> ' Add this AnotationTextObject to the Maps List

> oMap.AnnotationObjectsList.Add(annText)

> ' Refresh

> annText2.Refresh()

> Next

>

> If you cannot figure this our or have problems please feel free to contact

> us at support@softwarefx.com and we can solve your issue with you. I do

not

> see what you need as being a problem just a few hickups along the way!

> Enjoy!

> -cjs

>

>

> "Burton Roberts" <bhroberts@adelphia.net> wrote in message

> news:oiq2NEB9DHA.196@webserver3.softwarefx.com...

> > If I send two values to associate with each region I have defined on the

> > map, will I be able to represent one number as a color, and the other

> > number as a number printed on the area? My client is asking for this.

> > Thanks

> > Burton Roberts

> >

> >

> > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

> > news:nnP4Oyn8DHA.1816@webserver3.softwarefx.com...

> > > We have an extensive library of maps including US States, Zip Codes,

> > > Counties, etc.

> > >

> > > You can also provide your own map using an SVG file complying with

> certain

> > > specifications.

> > >

> > > You can turn labels on/off in a per-region basis (say state if your

> > regions

> > > are states or county, etc.).

> > >

> > > --

> > > FP

> > > Software FX

> > >

> > >

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...