Select to view content in your preferred language

WrapAround Error

1750
10
Jump to solution
06-07-2012 04:02 PM
TanyaOwens
Frequent Contributor
I keep getting the following error when using the sample codes:

"The property 'WrapAround' does not exist on the type 'Map' in the XML namespace 'http://schemas.esri.com/arcgis/client/2009'"

What am I missing and what does WrapAround do? - I seem to be able to delete it out of my code and everything seems to run fine.
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
When copying code from Silverlight SDK, you want to keep your class name for the constructor.

For example if your XAML and CS file is named SilverlightApplication1

And you copied the following code, you need to replace SpatialQuery with your class name.
        public SpatialQuery()
        {
            InitializeComponent();
            //more code goes here
        }


Also, while I cannot say a tentative release date of v3.0, if all goes well, it should be soon 🙂 Hopefully, this month.

View solution in original post

0 Kudos
10 Replies
DominiqueBroux
Esri Frequent Contributor
Support for WrapAround has been added in ArcGIS SL 2.2. See : http://help.arcgis.com/en/webapi/silverlight/2.2/help/#/What_s_new_in_2_2/0166000000m2000000/
  Which version are you using?
0 Kudos
TanyaOwens
Frequent Contributor
ArcGIS API for Silverlight 2.4

I am working with the spatial query from the samples http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery. I tried taking away the wraparound to work with the rest of the code but the tools don't show up to use for the query. I copied and pasted directly from the sample and I don't get and code errors to go by. I should also note that I do not have expression blend - I don't know if that makes a difference.
0 Kudos
JenniferNery
Esri Regular Contributor
If you are using ArcGIS API for Silverlight API v2.2 and up, you can enable wrap around mode like so: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Map, this allows you to view map continuously. Compare with older version: http://help.arcgis.com/en/webapi/silverlight/2.1/samples/start.htm#Map. Check your project reference assembly path and version.
0 Kudos
TanyaOwens
Frequent Contributor
It seems like I am running 2.0 but I have 2.4 downloaded as well. How do I update visual basic to use 2.4?
0 Kudos
TanyaOwens
Frequent Contributor
Never mind. I just did a fix errors of the 2.4 version so it basically did a reinstall and now I am able to access 2.4 in silverlight. I was curious about 3.0 - I see that is a pre-release, any time frame on when that will be the full release. I am about to start a new project and I am debating on which version to use...2.4 with silverlight 4 or 3.0 pre-release with silverlight 5. Any suggestions?
0 Kudos
JoeHershman
MVP Alum
The Silverlight 3.0 API exposes functionality that is only available in ArcGIS Server 10.1 so it will be released along with the official release of 10.1 (I would guess).  I have been told that is about a week away.  3.0 does have the advantage of being able to use Silverlight 5, but much of new features would only be available if the server has also been upgraded to 10.1

-Joe
Thanks,
-Joe
0 Kudos
TanyaOwens
Frequent Contributor
I have a new error with the spatial query sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery. In the c# code behind I get the error "Method must have a return type" for the line of code "public SpatialQuery()".
0 Kudos
JenniferNery
Esri Regular Contributor
When copying code from Silverlight SDK, you want to keep your class name for the constructor.

For example if your XAML and CS file is named SilverlightApplication1

And you copied the following code, you need to replace SpatialQuery with your class name.
        public SpatialQuery()
        {
            InitializeComponent();
            //more code goes here
        }


Also, while I cannot say a tentative release date of v3.0, if all goes well, it should be soon 🙂 Hopefully, this month.
0 Kudos
TanyaOwens
Frequent Contributor
Thanks!!! But unfortunately now I am getting errors regarding the toolbar.

"'ESRI.ArcGIS.Toolkit.SelectedToolbarItemArgs' is obsolete: 'This class is used with the Toolbar, which is deprecated.'"

I am currently running silverlight 4 with API 2.4.

My question with 3.0 is that we will be running ArcServer 10 for a while. Will application built in 3.0 and silverlight 5 run with server 10?
0 Kudos