|
POST
|
There are SDK samples for this: Spatial Query http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery Buffer Query http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery
... View more
06-07-2012
09:45 AM
|
0
|
0
|
512
|
|
POST
|
You are talking about creating pop-ups for map service in webmap that you are consuming in Silverlight App? I think this is the right forum: http://forums.arcgis.com/forums/30-ArcGIS-Online. But it looks like you found the correct resource page. You also probably want to look at this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WebMapDynamicServicePopups, which consumes this webmap http://www.arcgis.com/home/webmap/viewer.html?webmap=fd7fb514579f4422ab2698f47a7d4a46. The popup information is actually saved in the webmap JSON: http://www.arcgis.com/sharing/content/items/fd7fb514579f4422ab2698f47a7d4a46/data?f=pjson. I don't know if that answers your question but hopefully the right forum will be more helpful 🙂
... View more
06-07-2012
09:18 AM
|
0
|
0
|
3763
|
|
POST
|
Maybe you can create a WCF service that informs the applications when server has changed? Your FeatureLayer is probably set to Mode=OnDemand, this will exclude OBJECTIDs that are already on the client. If you don't want that filter, you can change to Mode=SnapShot.http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000015000000
... View more
06-07-2012
09:06 AM
|
0
|
0
|
1721
|
|
POST
|
Hmm Silverlight Viewer use a later version of the API (I think v2.4). "minerjoe" is correct though: multiple tiled services to display together they must use the same tiling scheme . I'd be curious to see if using Silverlight4 and API v2.4 will be any different. Could you try that?
... View more
06-07-2012
08:55 AM
|
0
|
0
|
1317
|
|
POST
|
What version of the API are you using? This is really strange, I've not heard about XamlParseException with just map.
... View more
06-07-2012
08:49 AM
|
0
|
0
|
2420
|
|
POST
|
Some of the time with the same service? GetAllDetails, simply try to parse service metadata JSON to LayerInfo objects (i.e.: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/layers). I'm not quite sure how clearing cache is related to this. What version of the API are you using? Have you tried v3.0?
... View more
06-07-2012
08:42 AM
|
0
|
0
|
1692
|
|
POST
|
Initialize is an asynchronous operation, which means you have to do the code in your Initialized event handler. ArcGISDynamicMapServiceLayer layer = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer" }; layer.Initialized += (a, b) => { if (layer.IsInitialized && layer.InitializationFailure == null) map1.Layers.Insert(1, layer); }; layer.Initialize(); Is equivalent to: ArcGISDynamicMapServiceLayer layer = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer" }; layer.Initialized += new EventHandler<EventArgs>(layer_Initialized); layer.Initialize(); } void layer_Initialized(object sender, EventArgs e) { var layer = sender as Layer; if (layer.IsInitialized && layer.InitializationFailure == null) map1.Layers.Insert(1, layer); }
... View more
06-06-2012
01:27 PM
|
0
|
0
|
818
|
|
POST
|
Once you detect a change in the server, you can call FeatureLayer.Update() to re-query the service. This will solve both issues.
... View more
06-06-2012
01:18 PM
|
0
|
0
|
1722
|
|
POST
|
Oh you should be able to print legend using that sample. Advanced session video talks about how that is done. Note that in v3.0 final, you can select any of the pre-defined template other than Map_Only and get legend control without adding any code.
... View more
06-01-2012
04:35 PM
|
0
|
0
|
1348
|
|
POST
|
If you are creating your own data form (not using Toolkit.FeatureDataForm), this is a related thread: http://forums.arcgis.com/threads/48327-Dataform-adding-Combobox-for-feature-attribute-on-the-fly.
... View more
06-01-2012
12:19 PM
|
0
|
0
|
586
|
|
POST
|
I checked the status of that NIMBUS bug and it has the following notes: We don't recommend input feature set without schema set when publishing the GP service; and rest input field definition has to match the defined schema otherwise the output will only have OBJECTID and geometry fields. But customer would like to publish schema less feature set input and input schema/field definition on the rest directory so the GP service will have a much wider use (to take different input schema, etc).
... View more
06-01-2012
12:05 PM
|
0
|
0
|
1561
|
|
POST
|
You can watch this technical workshop from Dev Summit 2012: http://video.esri.com/watch/1203/advanced-development-with-arcgis-api-for-silverlight-, samples from demo are available here: http://www.arcgis.com/home/item.html?id=ef6a80c07fb84f84a5fe5192221f582c. There is a section there that talks about Printing in v3.0 (see sample: http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#ExportWebMap)
... View more
05-31-2012
05:05 PM
|
0
|
0
|
1348
|
|
POST
|
1.I am adding lot of picturemarker features on map in button clik based on some condition.Now i can see some of the features after dragging the map only.How can i see all feature collection without dragging? After your graphics are added to GraphicsLayer, you can call ZoomTo, provided your map and layer have the same SpatialReference. MyMap.ZoomTo(graphicsLayer.FullExtent) 2.How can i clear all the existing features(picturemarker) in button click? You can use either one of these two: graphicsLayer.ClearGraphics() //or //graphicsLayer.Graphics.Clear() 3.How can i link each picturemarker with a straight line with arrow. You can add another GraphicsLayer that will contain Polyline and use Renderer with LineSymbol. After all point graphics (picturemarkers) are added to the other GraphicsLayer, use their geometry as MapPoint in your Polyline.Path.PointCollection I just used C# to VB converter so I'm not quite sure this works. The idea is you will clone your point graphic geometry add make that as a vertex in your polyline. lineGraphicsLayer.Renderer = New SimpleRenderer() With { _ Key .Symbol = New SimpleLineSymbol() With { _ Key .Color = New System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Red), _ Key .Width = 3, _ Key .Style = SimpleLineSymbol.LineStyle.Solid _ } _ } Dim polyline = New Polyline() Dim pc = New PointCollection() For Each g As var In pointGraphicsLayer.Graphics Dim mp = TryCast(Geometry.Clone(TryCast(g.Geometry, MapPoint)), MapPoint) pc.Add(mp) Next polyline.Paths.Add(pc) lineGraphicsLayer.Graphics.Add(New Graphic() With { _ Key .Geometry = polyline _ }) 4.How can i set a maptip on eachpicture marker in buttonclick event? Like infowindow showing in featureservice popup sample.All sample maptip code is adding from the tables . I need to add some textbox vaule as maptip. You can use VB code from this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple. You will need to update DataTemplate in XAML and if you want this to change your graphic.Attribute, you can change Binding statement Mode to TwoWay. <DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate"> <TextBoxText="{Binding [STATE_NAME]}" Foreground="Black" FontSize="12" /> </DataTemplate>
... View more
05-30-2012
05:46 PM
|
0
|
0
|
1480
|
|
POST
|
If you are just adding a button, I think you can get by with just updating style: http://blogs.esri.com/esri/arcgis/2010/05/28/localizing-arcgis-controls/ and implementing its click event. But if you feel you would need to modify code/behavior, in the Toolkit source code, look for "CommitButton" in FeatureDataForm.Theme.xaml, this is the "Apply" button.
... View more
05-30-2012
05:29 PM
|
0
|
0
|
821
|
|
POST
|
I think you just need to add reference to this .NET Assembly "System.Windows.Browser" and resolve reference to add using statement for this namespace http://msdn.microsoft.com/en-us/library/system.windows.browser.htmlpage%28v=vs.95%29.aspx
... View more
05-30-2012
04:59 PM
|
0
|
0
|
1573
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|