But, if your users still use older versions of IE on the desktop, right now adobe flex or silverlight is a better choice.
2048 is the default value of ArcGIS Server's MaxImageHeight/Width parameter, in the service config file. You are likely going over this!
You need to reduce your image or increase the parameter value to allow the map service to serve the larger format!
What's the coordinate system aka spatial reference of the map? If it's 3857 / Web Mercator, these lat/lon values are probably being interpreted as xy values in meters. You may need to project the envelope or the points before creating the envelope. First, you might try assigning a geographic coordinate system to the envelope but I don't know if it will work.
You might also like going through a tutorial on building a network analysis service available here.
What I think is really powerful with Server 10.1 release, is that you don't have to build any model for getting the task you've described above as a service. There are already GP tools available out-of-the-box with 10.1 that incorporate this logic. The ...
This is what a POST request to applyEdits looks like:
In the headers:
There is an "Alias" property on the Field class. That should solve your issue.
Got it. I was using the wrong address field name. ESRI's address field for its geocoder is called "Address" While the name of my addres field is "Street".
// address.Add("City", City.Text);
Make sure that you are using the right configuration. Maybe you (or your partner) is on a 64 bit system, but you are trying to run it on a x86 system. Then, the metadata can't be loaded. Try to select the right configuration type, then clean the solution and finally rebuild the solution.
If you don't mind making a round trip to the server, and you have a 10.1 geometry service available to you, you can use the Esri Rest API Project Geometries operation.
If Transformation is not specified, a search is made through a set of
default GeoTransformations. Currently, the following default
transformations are used when applicable:
I'd recommend you try the Proj.NET library (a Proj4 implementation for .Net) in your application and let Proj.NET do the coordinate transformations for you. It should be compatible with Silverlight by way of C#.
Here's a blog post with a C# example showing implementation.
I took a crack at it in a simple Windows Form app. Here's a screenshot of it..
You should be able to use System.Net.WebClient to send a request to a server with a url compliant with Esri's REST API.
For example, to retrieve a the feature whose ObjectID=2, passing this url:
The server returns a response that includes ...
I think the ArcGIS Java Script API will be the best option.
As per your question Java Script API +Dojo +ArcGIS is the best option and it supports Desktop,mobile and TAB platforms.
Check out the pros/Cons of Java Script API here
KmlLayer is alien to me, but I see it has a MapTip property same as FeatureLayer. Here's what we've got for FeatureLayers. These two lines are present in my main MapPage.xaml.cs in an event handler for the layer Initialized event.
FeatureLayerInfo lyrInfo = fLayer.LayerInfo;
fLayer.MapTip = CreateTipWindow(lyrInfo, fLayer.OutFields);
private PopupWindow ...
The code below is taken from the Legend With Templates sample under the Toolkit Controls section. Notice how the legend item named "states" gets removed. You could do the same thing for your raster layer, but instead of checking its label, check to see if layerItemVM.Layer is ArcGISImageServiceLayer See documentation on the is operator for more explanation....
To get the spatial reference of the layer ,Initialized event is useful, i.e. your "mylayer _Initialized" event.Have you tried that?
private void MyService_Initialized(object sender, EventArgs e)
Layer layer = sender as Layer;
//get spatial reference here...
You need the following information about the TilingSchema:
With this information, calculate the envelope of a tile is a simple mathematical calculation.
Look at the following picture:
Here’s some math you can use to find any tile:
Column = Floor((Point of interest X – Tile origin X) / (Resolution of Level * TileSize))
Row = ...
You can limit the map extent to an envelope. The user cannot navigate outside the envelope defined in the behavior.
You are supposed to define a ConstrainExtentBehavior behaviour:
<esri:Map x:Name="MyMap" Extent="-120,30,-60,60">
. . .
I'm not an expert in Silverlight, the way to fix the geometry is to simplify it. Use ITopologicalOperator5, set the isknownsimple to false and then call simplify which will return a geometry with multiple parts - in this case 3 parts.
Is there any particular reason not to serve the basemap with 3857 projection, such as your area of interest is at a high latitude? Almost all basemaps you can access freely on the internet is in this projection.
If you have all the original data, you can publish your own image service in perhaps any projection you want.
But for cached image service, it's ...
For apps I've been involved with, we use secured Feature Services (with the accounts used to secure the services coming from Active Directory - these are different than the accounts used to secure the ArcSDE layers in the geodatabase), in conjunction with a Proxy application, to control access to editable layers. An alternative to the Proxy application is to ...
My company uses bing maps API for geocoding and map tiles. It would appear the Bing API was returning 404 for requests for the past several hours. It just came back up, roughly 5 minutes ago.
You may want to try again.
I have received some feedback from other people on the geonet forums here https://geonet.esri.com/thread/173642, and it looks like they are having the same issues on Silverlight API 3.3, so I am going to assume that ArcGIS server 10.4 is not compatible with the Silverlight API in regards to Dynamic layers and it is very unlikely that this issue will be ...
In order to let the model work with the file a user has on his/her computer, you need to pass the file first to the server. You can build your own logic in Silverlight for that or use the new 10.1 Uploads functionality of the geoprocessing services.
My suggestion is to extend your current model to get first an Excel file from user, process it if required, ...
Is the Print Service synchronous? If so try making it an async service under ArcGIS Server as it may be timing out. You can change the sync / async settings by accessing the service under the REST admin services directory.
If it is already asynchronous can you post the error that is returned in the completed event handler and also the trace from the ...