POST
|
You can't just add an arbitrary image to mapview because it's lack of additional information such as projection or coordinate system which the mapview needs. What you can do is download it and using it in ArcMap to generate a .tpk file, then you can load tpk file with the sdk.
... View more
12-16-2012
07:30 PM
|
0
|
0
|
266
|
POST
|
Any information? I can't find samples about it. Thanks Technically speaking, YES. 1. You could derived from tiledlayer/tiledmapservicelayer and override its geturl method to load tiles of google maps. 2. You could using 3rd party application which already providing ArcGIS REST service from google maps, just like Portable Basemap Server, https://geopbs.codeplex.com/ However, google has restrictions of loading tiles without using its map api, FYI.
... View more
11-19-2012
04:14 PM
|
0
|
0
|
256
|
POST
|
I asked a similar question on stack overflow here: http://stackoverflow.com/questions/5559219/whats-the-official-esri-solution-for-serving-up-static-map-images-i-e-png-jpg What I had come up with on my own was to enable WMS functionality on the map service, and then I was able to access the map directly via a URL. There are no URL parameters for adding markers, but you can specify which layers should be visible - which can include your "markers." However, this seemed a bit kludgy to me, so I just put the question out there to see if there was an official ESRI solution. The response I got shows a way to export the map service as an image using JavaScript. This gets around having to enable the WMS functionality on the map service, but you still have to run javascript to get export the map and dynamically add an image with the src set to the output. I'd love to hear if anyone else has a "cleaner" solution. Thanks, Tom (W) Hi, you can just using the soap api here: http://services.arcgisonline.com/ArcGIS/sdk/soap/SOAP_Map_ExportMapImage.htm and add custom graphics to mapdescription before exporting an map image.
... View more
11-14-2012
06:26 PM
|
0
|
5
|
1687
|
POST
|
Just look at the symbol gallery here�?http://resources.arcgis.com/en/help/silverlight-api/samples/SymbolGalleryWeb/start.htm and select the "custom fill symbol", find something useful?
... View more
08-14-2012
05:53 PM
|
0
|
0
|
444
|
POST
|
You could use shapefile class here: http://esrislcontrib.codeplex.com/ 🙂
... View more
08-07-2012
05:54 PM
|
0
|
0
|
330
|
POST
|
Hi all, GraphicsSource is very good idea for binding using in MVVM. But I found some issues on this property and thought it worth to be improved for GraphicsSource. For instance, I have a GraphicsLayer on Map control which ID="GLayer", and a ObservableCollection<Graphic> which stores my Graphics. Manipulating on ObservableCollection<Graphic> such as remove and add can be reflected to GraphicsLayer and then on Map:
_graphics = new ObservableCollection<Graphic>(some graphics);
(Map1.Layers["GLayer"] as GraphicsLayer).GraphicsSource = _graphics;
...
_graphics.Clear();
foreach (Graphic g in new ObservableCollection<Graphic>(some new graphics)
_graphics.Add(g);
However, directly set the _graphics just not working:
_graphics = new ObservableCollection<Graphic>(some new graphics);//just not working as expected.
When directly setting _graphics as above, nothing happend on Map. I expected below directly set the _graphics just working as previously. Don't know am I right?
... View more
05-24-2012
08:06 PM
|
0
|
5
|
3066
|
POST
|
Just try this: MyMap.ZoomToResolution(MyMap.Resolution / MyMap.ZoomFactor, mapPoint);
... View more
05-21-2012
05:32 PM
|
0
|
0
|
556
|
POST
|
Actually, the Silverlight app does not compress these files for you. What you need to do is to make your result shapefiles into a zip file on server side, more specifically, these should be done as one part job of your geoprocessing service. You need to write python script to do this, grab your shapefiles as middle result, zip them into one file, and make this zip file as final gp service result to be downloaded. Here's sample code of how to zip and unzip files in python: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/009300000037000000.htm
... View more
05-17-2012
05:32 PM
|
0
|
0
|
200
|
POST
|
There is no control ability on label in REST API(as far as I know, neither 10.1 rest api). So you can just turn off the visibility of a whole layer rather than labels only. Two solutions to this issue: 1. Maintain two map services on server, one for map content only and another for "labels" only. On client side, you can easily switch the visibility of each layer(the label map service or the map content map service). On server side, construct the "labels" only map service by creating a annotation feature class, and only add this layer to your mxd, then publish. This is the recommended approach and indeed implemented by online maps provider, such as ArcGIS Online or ???????. 2. Turn off your label in mxd and implemented label function on client side by using graphics layer and text symbol. Hope these helps.
... View more
03-30-2012
07:02 PM
|
0
|
0
|
231
|
POST
|
FYI, ArcGIS API for Silverlight 2.4 only supports Silverlight 4, not 5. ArcGIS API for Silverlight 3.0 beta 2 supports Silverlight 5.
... View more
03-28-2012
06:16 PM
|
0
|
0
|
336
|
POST
|
code example here:http://forums.arcgis.com/threads/51194-Offline-database-backed-tile-layer
... View more
03-07-2012
05:43 PM
|
0
|
0
|
308
|
POST
|
This is a discussed issue, try the following code:
private void MyMap_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (!(_datetime.Hour == 0 && _datetime.Minute == 0 && _datetime.Second == 0))//not dive in on the first time
{
if (DateTime.Compare(_datetime.AddMilliseconds(500),DateTime.Now)>0)//the interval of two clicks is smaller than 0.5s
{
e.Handled = true;
}
}
_datetime = DateTime.Now;
}
and the ref link:http://forums.esri.com/Thread.asp?c=158&f=2455&t=301837
... View more
03-06-2012
03:20 PM
|
0
|
0
|
176
|
POST
|
It's really not legal for directly using google maps' tile images in a third party app, including our Silverlight API. However, technically speaking you're possible to do this job easily by extending the TiledMapServiceLayer class, please refer: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledMapServiceLayer.html If you are not interesting in the details, and just want to see the result in your Silverlight app, technically, you can try Portable Basemap Server: http://www.arcgis.com/home/item.html?id=48bf53da123e442ab8ac9aed52747552 It's provided a REST service url of google maps and this can be directly using in ArcGIS client api, such as ArcGISTiledMapServiceLayer.
... View more
03-01-2012
03:18 PM
|
0
|
0
|
385
|
POST
|
It's possible to define a border style for a fill symbol. Just look at the Custom Fill Symbols in SymbolGallery here: http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm You'll notice that we could define the control template of a FillSymbol to customize its fill property. In the same way, we also can define its border in this way by using a Brush, ex. LinearGradientBrush. Because the Fill and BorderBrush property of FillSymbol are both silverlight Brush type. You could do such way:
<esri:FillSymbol x:Name="CustomBorderFillSymbol" Fill="#66FF0000" BorderThickness="5">
<esri:FillSymbol.BorderBrush>
<LinearGradientBrush StartPoint="0,0" EndPoint="2,0"
SpreadMethod="Repeat" MappingMode="Absolute">
<GradientStop Color="Transparent" Offset="0" />
<GradientStop Color="Transparent" Offset="0.499" />
<GradientStop Color="#999" Offset="0.5" />
</LinearGradientBrush>
</esri:FillSymbol.BorderBrush>
</esri:FillSymbol>
... View more
02-29-2012
03:45 PM
|
0
|
0
|
212
|
Title | Kudos | Posted |
---|---|---|
1 | 02-05-2012 03:22 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|