POST
|
Looking at this a little more i think there may be a solution. The stackoverflow post above would only work if you could get hold of the OpenGL SurfaceView itself, which we dont expose. However, we do provide a method to get the current mapviews image which you can combine with the top level views image returned from the normal view.getDrawingCache method which you have posted above (this is actually what you would have to do if you did get an image from the SurfaceView anyway). Assuming you are using our 10.2.7 release (not the quartz beta) you can do this with the MapView.getDrawingMapCache() method, here is the doc: https://developersdev.arcgis.com/android/api-reference/reference/com/esri/android/map/MapView.html#getDrawingMapCache(float, float, int, int) w.
... View more
11-05-2015
06:52 PM
|
1
|
0
|
899
|
POST
|
Hi, This might be device dependent (i assume this screenshot is from a device, or is it from the emulator?). Can you confirm the device, os version and sdk version you are using please? Are you using the devices screenshot implementation or writing this yourself in code? if you are writing your own code be aware that the mapview is implemented as a GLSurfaceView, see this stackoverflow post for good information on implementing this: surfaceview - Android Take Screenshot of Surface View Shows Black Screen - Stack Overflow I hope that helps Will
... View more
11-02-2015
12:19 PM
|
1
|
2
|
899
|
POST
|
One thing to keep in mind is that when creating a geodatabase feature service table from a MapService, you need to use the URL to a layer in the map service (append /0 onto your url for layer 0, /1 for layer 1 etc...). The top level URL you are using is just for exporting map images which are generated on the server, geodatabase feature service tables request features from the service as json then render them on the client. To achieve this, the api requires access to a single layer in the map service with which we can query features. Also, you need to check the features that are in the layer and the layers scale thresholds defined for each layer, it might be that there are no features in the extent you are viewing, or that the layer is turned off at that specific scale. You can check these things by performing direct queries using the rest api html pages. Will
... View more
09-09-2015
12:33 AM
|
0
|
0
|
355
|
POST
|
Hi, When you use the QueryTask the resulting json does not include the full layer definition (which includes information about domains). The same Field object is reused in a number of places, including for ArcGISFeatureLayer.getFields() and GeodatabaseFeatureServiceTable.getFields(). For these two cases, we have the layer defiinition and can return you the domain information. When dealing with the results from a QueryTask, we do not have this information. If you use the ArcGISFeatureLayer.queryFeatures() or GeodatabaseFeatureServiceTable.queryFeatures() method, then you will get domain information and this will work. Will
... View more
08-10-2015
07:47 PM
|
0
|
0
|
842
|
POST
|
Yes, sorry, domains are not supported for graphics, to use domains you need to be using a feature layer. You could try using a FeatureLayer with a FeatureSet made from your graphics. If you use the same layer definition string as your feature layer then the domains will be available to you. Look at this constructor: https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/ags/ArcGISFeatureLayer.html#ArcGISFeatureLayer(java.lang.String, com.esri.core.map.FeatureSet, com.esri.android.map.ags.ArcGISFeatureLayer.Options)
... View more
08-03-2015
05:29 PM
|
0
|
2
|
842
|
POST
|
Can you confirm that you are using the topographic basemap from ESRI that is set in the samples activity_main.xml layout file? This sets the MapViews spatial reference (which in this case is web mercator or 102100). You cannot change this once this is set. If you want your MapView to be in a specific spatial reference then use a service which supports this and add this as your first layer to the MapView (and remove the topo map reference in the mapview xml definition in the layout file). Have you tried just adding the WMS Layer using the default constructor into the MapView (whilst still using the top basemap from the layout xml file)? If the map service supports web mercator, it should just work.
... View more
08-03-2015
05:26 PM
|
0
|
0
|
682
|
POST
|
Ok, is there a reason why you are not using the GeodatabaseSyncTask for this, as we handle all of this for you? For questions on the sinchronyzeReplica REST api, i would post this on the ArcGIS Server forum.
... View more
07-30-2015
02:47 PM
|
0
|
0
|
568
|
POST
|
does the WMS service support this spatial reference? You could try and use the constructor which checks to see if the current mapviews spatial reference (which is set from the first layer you add, typically the basemap layer) is supported by the WMS service.
... View more
07-30-2015
12:27 PM
|
0
|
2
|
682
|
POST
|
Can you confirm what spatial reference your mapview is in (its based on the first layer you add, typically the basemap layer) and the spatial reference of the shapefile? They will need to match for this to work, we do not re-project shapefiles due to performance issues.
... View more
07-30-2015
12:24 PM
|
0
|
0
|
462
|
POST
|
Are you using the rest api or our SyncTask in the API?
... View more
07-30-2015
12:23 PM
|
0
|
2
|
568
|
POST
|
What mode are you using for your GraphicsLayer? GraphicsLayer.RenderingMode | ArcGIS Android 10.2.6 API This greatly affects memory usage and performance. It does also mean the user experience is slightly different, but static mode might solve your problem.
... View more
07-30-2015
12:21 PM
|
0
|
0
|
655
|
POST
|
Hi Salih, Can you post the code you are using to display the popup? If you are using our Popup and PopupContainer, this should be done for you. But if you are displaying your own type of popup, then you will have to access the CodedValueDomain object. The CodedValueDomain object has a method called getCodedValues() which gives you back the mapping between the Code (the value in the attribute) and the Name (the string you want to show to the user) as a Map. CodedValueDomains are accessible when you are using FeatureLayers or ArcGISMapServiceLayers (as they load the service metadata associated with the layer so you can access it as a developer). You might want to consider using a FeatureLayer in SelectionMode to show these features from a query, then you can access the Domains and other properties to help you build the UI that you need. I hope that helps. Will
... View more
07-30-2015
12:19 PM
|
0
|
4
|
842
|
POST
|
This is not currently possible. To achieve this you would have to write code to detect when the vehicle is stationary using the sensors that are important to you and turn off navigation mode momentarily. However, you would then also have to set the rotation of the map. Do you really want the map to suddenly change to be North up even if the car was previously heading south? Is there another problem you are trying to avoid? thanks Will
... View more
07-27-2015
01:58 PM
|
0
|
0
|
466
|
POST
|
It looks like your data is in WGS84 and you are using a local tiled layer as your base layer (which sets the spatial reference of the entire MapView) in Web Mercator. Dynamic re-projection of feature layers from a feature set are not supported. You will have to either use another base layer in WGS84 or reproject your features into Web Mercator (using the Geometry Engine). I hope that helps. Will
... View more
07-27-2015
01:55 PM
|
0
|
0
|
439
|
POST
|
OK, i think i now understand your problem, the text you want for each feature differs greatly in size, so its hard to build a composite symbol for all text values. There are other options: If you author your labels (simple labels only, but i believe a background color is possible) in ArcMap or Pro, publish a feature service, then take the features offline in to a GeodatabaseFeatureTable then we support rendering these on the map, the label definition we support is here: ArcGIS REST API will.
... View more
06-18-2015
03:39 PM
|
0
|
1
|
902
|
Title | Kudos | Posted |
---|---|---|
1 | 02-01-2015 10:13 PM | |
1 | 01-21-2016 01:12 AM | |
1 | 05-15-2015 03:30 PM | |
1 | 03-28-2016 03:47 PM | |
1 | 05-15-2015 03:35 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|