ScottConrad


Hello thank you for reading this post.

I am populating my VE map using the pietschsoft VE control using V4 of the API.

I have a dataset of the Pin's which includes the Xcoor, Ycoor, and the Title with the Xcoor and Ycoor dimensioned as a double and the title as a String.

I am loading my data from my dataset like so:

beaches = beachdetailsmap.GetDataallbeaches

Dim counter As Integer = 1

For Each beach In beaches

Dim xcoor As Double

Dim ycoor As Double

Dim point As String

Dim title As String

title = beach.title

xcoor = beach.xcoor

ycoor = beach.ycoor

point = ("Point" & (counter + 1)).ToString

Me.VEMap1.Pushpins.Add(New PietschSoft.VE3.VEPushpin((point), New PietschSoft.VE3.VELatLong(xcoor, ycoor), "", "", "This is the location of the beach."))

counter += 1

Next

This loads about 45 beaches for me.

When i take my title and try to place it here:

Me.VEMap1.Pushpins.Add(New PietschSoft.VE3.VEPushpin((point), New PietschSoft.VE3.VELatLong(xcoor, ycoor), "", (title), "This is the location of the beach."))

It does not work. I cannot figure out why. Any suggestions





Re: Adding multiple pin titles and descriptions

Derek Chan


ScottConrad wrote:

Hello thank you for reading this post.

I am populating my VE map using the pietschsoft VE control using V4 of the API.

I have a dataset of the Pin's which includes the Xcoor, Ycoor, and the Title with the Xcoor and Ycoor dimensioned as a double and the title as a String.

I am loading my data from my dataset like so:

beaches = beachdetailsmap.GetDataallbeaches

Dim counter As Integer = 1

For Each beach In beaches

Dim xcoor As Double

Dim ycoor As Double

Dim point As String

Dim title As String

title = beach.title

xcoor = beach.xcoor

ycoor = beach.ycoor

point = ("Point" & (counter + 1)).ToString

Me.VEMap1.Pushpins.Add(New PietschSoft.VE3.VEPushpin((point), New PietschSoft.VE3.VELatLong(xcoor, ycoor), "", "", "This is the location of the beach."))

counter += 1

Next

This loads about 45 beaches for me.

When i take my title and try to place it here:

Me.VEMap1.Pushpins.Add(New PietschSoft.VE3.VEPushpin((point), New PietschSoft.VE3.VELatLong(xcoor, ycoor), "", (title), "This is the location of the beach."))

It does not work. I cannot figure out why. Any suggestions



I haven't played with pietschsoft but from this line:

Me.VEMap1.Pushpins.Add(New PietschSoft.VE3.VEPushpin((point), New PietschSoft.VE3.VELatLong(xcoor, ycoor), "", (title), "This is the location of the beach."))

Seems like your missing double quotes on (title) it should be "(title)"







Re: Adding multiple pin titles and descriptions

crpietschmann

For questions relating to the PietschSoft.VE control, please use the discussion forums over at the PietschSoft.VE CodePlex site.

http://www.codeplex.com/PietschSoftVE3/Thread/List.aspx