POST
|
seems I can't edit first post so lets try links again: esir mobile 10 and wpf esri mobile 10 and mvvm
... View more
07-15-2011
12:40 PM
|
0
|
0
|
189
|
POST
|
Hi, I felt it was time to give back to the community by writing some tutorials I wish I had found when I stated developing in cutsom mobile SDK 10 and WPF applications. The first one is basically like your Hello World Map with some basic navigation but also showing code to sync. Esri Mobile 10 SDK and WPF Beginner�??s Tutorial The second one builds off first by adding selecting capabilities but implemented using MVVM design pattern. Esri Mobile 10 SDK, WPF and MVVM I appriecate any feedback on these! Thanks
... View more
07-14-2011
05:58 AM
|
0
|
2
|
1050
|
POST
|
You are correct- that is missing. I have noticed that a lot of the help docs for WPF look to be cut out of WinForms 9.3.1 docs and not updated to reflect the differences. Stumbled across thsi numerous times. If you want to do it- here is what I suggest. Create a gif or png image that mimics the flashing. Then create a user control that is just this image and extends IMapGraphicLayer. Build in some code to handle input of a coordinate and converting to screen position. Then when want to show the flash use add a graphic layer to map that takes your user control and set the coordinate. Map control is really just a WPF canvas. So you can manipulate it by adding in user controls through graphic layers- which are also just WPF canvas controls. Good luck
... View more
07-13-2011
10:39 AM
|
0
|
0
|
196
|
POST
|
Guessing the CollectFeaturesTask.CollectionCompleted event must fire before map control event is triggered to update the display. You could do your validation in CollectionCompleted and set a flag of true/false and then see if using say- FeatureLayer event DataChanged or maybe the map event LayersDrawingCompleted to get image and send email if validation is true.
... View more
06-10-2011
06:17 AM
|
0
|
0
|
230
|
POST
|
try mobileServiceConnection1.Url = @"http://servername/arcgis/services/servicename/MapServer/MobileServer";
... View more
06-08-2011
08:24 AM
|
0
|
0
|
228
|
POST
|
Our app is running on a tablet so I used SQL Server Express. But mobile devices will only handle SQL Server Compact
... View more
06-08-2011
08:21 AM
|
0
|
0
|
336
|
POST
|
Well MapAction is an abstract class so you would have to extend one of the existing derived classes: ESRI.ArcGIS.Mobile.MapActions.DragRectangleMapAction ESRI.ArcGIS.Mobile.MapActions.PanMapAction ESRI.ArcGIS.Mobile.MapActions.SelectionMapAction ESRI.ArcGIS.Mobile.MapActions.ZoomInMapAction ESRI.ArcGIS.Mobile.MapActions.ZoomInOutMapAction ESRI.ArcGIS.Mobile.MapActions.ZoomOutMapAction ESRI.ArcGIS.Mobile.Sketch.SketchTool Please note that SketchTool is also an abstract class so you would have to extend one of it's derived classe: ESRI.ArcGIS.Mobile.WPF.AddVertexSketchTool ESRI.ArcGIS.Mobile.WPF.DeleteVertexSketchTool ESRI.ArcGIS.Mobile.WPF.EnvelopeSketchTool ESRI.ArcGIS.Mobile.WPF.InsertVertexSketchTool ESRI.ArcGIS.Mobile.WPF.MoveVertexSketchTool ESRI.ArcGIS.Mobile.WPF.SelectGeometryTool Here is an example using the EnvelopeSketchTool: EnvelopeSketchTool envelopeSketchTool;
private void btnSelectLayer_Click(object sender, RoutedEventArgs e)
{
setupSelectTool();
}
private void setupSelectTool()
{
//setup selection layer
selectionLayer = new GraphicLayer();
map1.MapGraphicLayers.Add(selectionLayer);
selectionLayer.GeometryBag.Add(new ESRI.ArcGIS.Mobile.Geometries.Polygon());
selectionLayer.SelectedGeometry = selectionLayer.GeometryBag[0];
m_lastNavigatioMode = map1.CurrentNavigationMode;
map1.CurrentNavigationMode = ESRI.ArcGIS.Mobile.WPF.NavigationMode.None;
envelopeSketchTool = new EnvelopeSketchTool();
envelopeSketchTool.AttachToSketchGraphicLayer(selectionLayer);
envelopeSketchTool.SketchCompleted += doneSketch;
}
//public delegate void SelectEnvelopeCompleteEventHandler(object sender, EventArgs e);
//public event SelectEnvelopeCompleteEventHandler OnShowBoundary;
private void doneSketch(object sender, EventArgs e)
{
Envelope env = envelopeSketchTool.Envelope;
//turn off once selection done
if (envelopeSketchTool != null)
envelopeSketchTool.DetachFromSketchGraphicLayer();
//now call method to select
SelectFeatures(env);
}
... View more
06-06-2011
07:45 AM
|
0
|
0
|
284
|
POST
|
you can get to it in WPF through map1.CurrentNavigationMode and set it like so: map1.CurrentNavigationMode = ESRI.ArcGIS.Mobile.WPF.NavigationMode.Pan;
... View more
06-03-2011
08:49 AM
|
0
|
0
|
284
|
POST
|
tony.farndon is correct that mobile SDK does not support relationship classes or standalone tables. i keep pestering ESRI about it but don't think it's planned even for 10.1 you have to either do the workaround of null geometry or create a local database and a web service to manage the syncing- which is what we did for one of our clients sign retroflectivity inventory app- check out our project showcase and look for City of Appleton, WI. http://showcase.gisinc.com/
... View more
06-03-2011
08:10 AM
|
0
|
0
|
336
|
POST
|
Not sure about iOS and Andriod (guessing no) for SDK 10. For Window mobile apps- still not included in 10. Not sure if will have 10.1. Been asking for it for awhile. But where there is a will there is a way. What I have done is use some local database on the client that I writed all table edits. Then have a web service set up to handle the syncing between the enterprise database and the local. The more standalone tables and more relationships- the more difficult to write the web service. Good luck
... View more
05-10-2011
08:52 AM
|
0
|
0
|
184
|
POST
|
If you are looking for a GPS emulator there are some options out there. For free you can use Virtual Serial Ports Emulator (VSPE) free software to create virtual COM ports. Then use gpsfeed+ free software to create the gps stream. Another option is GPSGate. It has a 14 day free trial and one license only cost like 50 bucks I think. They advantage of GPSGate is has converters of different type of gps outputs to NMEA. I have used it as a translate in one of my mobile projects.
... View more
05-06-2011
06:13 AM
|
0
|
0
|
483
|
POST
|
I would review your license agreement. I am pretty sure it will have something in there about to use the controls you need a ESRI Mobile SDK license.
... View more
05-06-2011
06:08 AM
|
0
|
0
|
523
|
POST
|
Also- I have had lots of problems with map.MapLayers.AddRange(mobileCache). Pretty sure there is a major bug there. Try using the long way to add the layers: ReadOnlyLayerCollection clc = mobileCache.Layers;
int iCnt = mobileCache.Layers.Count;
for (int i = 0; i < iCnt; i++)
{
Layer layer = mobileCache.Layers;
MobileCacheMapLayer mobileCacheMapLayer = new MobileCacheMapLayer((MobileCacheLayer)layer);
map1.MapLayers.Insert(index, mobileCacheMapLayer);
}
... View more
05-05-2011
01:49 PM
|
0
|
0
|
754
|
POST
|
Well first off you are going to have to use ArcGIS Server. Create a mxd with your raster image. Publish it to ArcGIS Server as a tile service. You will have to determine what scale levels you will need (1:500, 1:1000,1:500 and so on). Here is a link to the tools for creating and manging tile caches: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/An_overview_of_the_Caching_toolset/005400000003000000/ After you create it you will need to copy the cache locally. It will be saved on your server under arcgisserver\arcgiscache\<map service name>\ And the local path you will use in the for the TileCacheMapLayer will be the somethign like this: C:\Caches\BaseMapCache\Layers where under Layers folder is a subfolder called _alllayers and two files- conf.cdi and conf.xml Not sure if this the route you need to take for what you want to do- seems to me there should be something simpler. But at least you know how to do this.
... View more
05-05-2011
01:46 PM
|
0
|
0
|
754
|
POST
|
For raster caches I created a tiled map service and then copied that cahce locally and used TileCacheMapLayer to add to mobile map. TileCacheMapLayer mpLayer = new TileCacheMapLayer(streetCache);
... View more
05-05-2011
08:21 AM
|
0
|
0
|
754
|
Title | Kudos | Posted |
---|---|---|
1 | 02-06-2015 08:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|