POST
|
I found the solution by changing how I instantiate the GraphicsLayer to use the other constructor: GraphicsLayer graphicsLayer = new GraphicsLayer(webMercator, null);
... View more
02-20-2012
08:37 PM
|
0
|
0
|
293
|
POST
|
I got the Hello World Map sample working with a GraphicsLayer containing two points (two points on the ESRI Redlands campus). When I run the sample with the World_Street_Map ArcGIS Online layer as the first layer in my MapView it all works fine. However, when I remove the ArcGIS Online layer the GraphicsLayer and its points are no longer shown. Instead, I get a blank empty white screen. I just simply want a map that has the GraphicsLayer, any advice on how to do that? package com.esri.android.test; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import com.esri.android.map.GraphicsLayer; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISDynamicMapServiceLayer; import com.esri.core.geometry.GeometryEngine; import com.esri.core.geometry.Point; import com.esri.core.geometry.SpatialReference; import com.esri.core.map.Graphic; import com.esri.core.symbol.SimpleMarkerSymbol; import com.esri.core.symbol.SimpleMarkerSymbol.STYLE; public class HelloWorldMapActivity extends Activity { MapView map = null; SpatialReference webMercator = SpatialReference.create(102100); SpatialReference wgs84 = SpatialReference.create(4326); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Retrieve the map and initial extent from XML layout map = (MapView)findViewById(R.id.map); /* map.addLayer(new ArcGISDynamicMapServiceLayer("" + "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer")); */ GraphicsLayer graphicsLayer = new GraphicsLayer(); Point redlands1 = (Point) GeometryEngine.project(new Point(-117.1990, 34.05564), wgs84, webMercator); Point redlands2 = (Point) GeometryEngine.project(new Point(-117.1922, 34.05797), wgs84, webMercator); graphicsLayer.addGraphic(new Graphic(redlands1, new SimpleMarkerSymbol(Color.GREEN, 15, STYLE.CIRCLE))); graphicsLayer.addGraphic(new Graphic(redlands2, new SimpleMarkerSymbol(Color.RED, 15, STYLE.CIRCLE))); map.addLayer(graphicsLayer); Object init = getLastNonConfigurationInstance(); if (init != null) { map.restoreState((String) init); } } protected void onPause() { super.onPause(); map.pause(); } protected void onResume() { super.onResume(); map.unpause(); } }
... View more
02-20-2012
08:01 PM
|
0
|
1
|
2360
|
POST
|
See the Windows Phone API supports auto reprojecting of Graphic Layers see http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2011/11/18/Version-2.3-of-the-ArcGIS-API-for-Silverlight_2C00_-WPF_2C00_-and-Windows-Phone-is-available_2100_-.aspx - I'm merely requesting for this to be in the Android API too.
... View more
02-20-2012
07:21 PM
|
0
|
0
|
379
|
POST
|
The home page graphic of the ArcGIS Runtime SDK for Android on the resources is misleading! The graphic shows the ArcGIS Runtime SDK **working** in the emulator.
... View more
01-19-2012
02:21 PM
|
0
|
0
|
1046
|
POST
|
Hi Ivan, you would like an example of a map containing two or more layers, where each layer has its own coordinate system different from the other layers? That's pretty easy. 1) ArcGIS Online layer in Web Mercator (GCS_WGS_1984_Major_Auxiliary_Sphere) 2) A map of Redlands (WGS_1984_UTM_Zone_11N) 3) A GPS tracklog (GCS_WGS_1984) There's a business requirement to manage the datasets for #2 and #3 in their respective coordinate system, and there's a business requirement to show the datasets on the same map. BTW, Ivan, I followed your references and manipulated my code as follows: <CODE> // Add a RED DIAMOND point in Australia using WGS84 geographic coordinates - Works Now GraphicsLayer wgslayer = new GraphicsLayer(); wgslayer.addGraphic( new Graphic( GeometryEngine.project(new Point(144, -37), SpatialReference.create(4326), SpatialReference.create(102100)), new SimpleMarkerSymbol(Color.RED, 15, STYLE.DIAMOND)) ); map.addLayer(wgslayer); </CODE>
... View more
01-19-2012
01:09 PM
|
0
|
0
|
379
|
POST
|
A couple of ideas (these are comments, the suggestions haven't been tested): 1. Load the MrSID in ArcGIS and use a Define Projection tool and set the projection to ArcGIS's definition of WGS84, -- OR -- 2. In ArcPad use the Define Datum Transformation tool. - Specify WGS_1984 and D_WGS_1984 as your Datum 1 and Datum 2 respectively - Choose a transformation method, say, Geocentric_Translation - Set all the parameters Dx, Dy, Dz, Rx, Ry, Rz, Xcr, Ycr and Zcr to 0
... View more
01-19-2012
11:31 AM
|
0
|
0
|
341
|
POST
|
Hi, I've just been trying to get geographic coordinates to display on the Hello World Map sample with projection on the fly. I prefer to keep the data in geographic coordinates and not code reprojection if the map control can be coerce to do it for me. <CODE> public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Retrieve the map and initial extent from XML layout map = (MapView)findViewById(R.id.map); map.addLayer(new ArcGISDynamicMapServiceLayer("" + "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer")); // Add a BLUE DIAMOND point near San Bernadino using Web Mercator coordinates - this works! GraphicsLayer merclayer = new GraphicsLayer(); merclayer.addGraphic( new Graphic( new Point(-13051775.04, 4066103.08), new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.DIAMOND)) ); map.addLayer(merclayer); // Add a RED DIAMOND point in Australia using WGS84 geographic coordinates - fail (point is shown at equator) GraphicsLayer wgslayer = new GraphicsLayer(SpatialReference.create(4326), null); wgslayer.addGraphic( new Graphic( new Point(144, -37), new SimpleMarkerSymbol(Color.RED, 15, STYLE.DIAMOND)) ); map.addLayer(wgslayer); //Retrieve the non-configuration instance data that was previously returned. Object init = getLastNonConfigurationInstance(); if (init != null) { map.restoreState((String) init); } } </CODE>
... View more
01-18-2012
11:16 AM
|
0
|
4
|
2951
|
POST
|
Hi Steve R, I know it may be obvious to you having troubleshooted your hardware limitation and came up with the path you're on, but, perhaps you can bring us all up to speed and elaborate more on the hardware limitation you're trying to workaround? It may stimulate discussion on ideas that you may have not previously considered. Steve Q
... View more
10-11-2010
07:24 PM
|
0
|
0
|
281
|
POST
|
In ArcPad 10, extra support was added to the TIFF module to support TIFF images that comes from ArcGIS. If you have a problematic TIFF image, I would very much like to get a copy of it so I can analyze it. Otherwise, can I recommend that you use ArcMap to generate better TIFF images for ArcPad using the following steps: 1. Load your original image in ArcMap 2. In the Table of Contents, right click on the image, and select Data > Export Data 3. An Export Raster Data dialog should appear 4. Set Format: TIFF 5. Check Use Renderer (* important *) 6. Check Force RGB (* important *) 7. Click Save button This should produce a TIFF image that will load in ArcPad.
... View more
08-02-2010
05:09 PM
|
0
|
0
|
281
|
POST
|
The Yuma has two cameras which cannot be distinguished by the ArcPad Camera extension because both cameras are being presented to Windows and ArcPad as one software camera. Trimble APIs are required to correctly identify the two cameras and make the software camera switch between them. Trimble has this functionality in a camera switcher application which you can download it from Trimble's website http://trl.trimble.com/dscgi/ds.py/Get/File-497013/Camera%20Switching%20Utility%201.0.0.616-1.zip and run the app prior to starting ArcPad.
... View more
08-02-2010
04:59 PM
|
0
|
0
|
800
|
POST
|
(1) Unfortunately, the QuickCapture tool currently doesn't do this. (2) You feedback is a fabulous idea of what QuickCapture should be able to do and I think it should be recorded in http://ideas.arcgis.com.
... View more
08-02-2010
04:43 PM
|
0
|
0
|
165
|
POST
|
Hi Ian, can I suggest you put the ArcPad 10 evaluation on a USB stick and so that you can test it when you visit your hardware vendor? Otherwise, if that's not an option, then, I'd research warranty and return policy options.
... View more
08-02-2010
03:58 PM
|
0
|
0
|
411
|
POST
|
Don't be mistaken. All your existing MrSID imagery will still continue to work. The MrSID reader capability exists in both ArcGIS 10 and ArcPad 10. I won't even attempt to offer a guess as to why the MrSID writer was removed from ArcGIS 10. I acknowledge that it's you the users that suffer whenever previous functionality gets deprecated. ArcPad Data Manager, unfortunately, gets impacted since it has to reflect that loss of functionality from ArcGIS 10.
... View more
08-02-2010
03:52 PM
|
0
|
0
|
936
|
POST
|
MrSID is no longer being supported in ArcGIS 10 as an export format. So, unfortunately, that meant it had to be pulled from ArcPad's Data Manager too.
... View more
07-14-2010
05:05 PM
|
0
|
0
|
936
|
POST
|
Whilst there isn't a way for customizers to programmatically to determine if offsetpoly is currently active, you can use the following workaround to measure the number of seconds the offsetpoly command takes, i.e. Dim start, elapsed start = now ExecuteCommand("offsetpoly") elapsed = (now - start) * 86400.0 If the command toggled the tool to the "off" state, then elapsed will be low, usually, 0.0. If the command toggled the tool to the "on" state, a dialog box appears and it usually takes the user at least 3 seconds to respond to it. So, you can used this fact to make an educated guess at what happened and react accordingly. For example, Dim start, elapsed start = now ExecuteCommand("offsetpoly") elapsed = (now - start) * 86400.0 If elapsed <= 1.0 Then ExecuteCommand("offsetpoly") End If
... View more
07-14-2010
05:03 PM
|
0
|
0
|
167
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|