|
POST
|
private void closestFacilities() {
mClosestFacilityTask = new ClosestFacilityTask(getApplicationContext(), "http://www.yourserver.com/arcgis/rest/services/NetworkAnalysis/CA/NAServer/Closest%20Facility");
final SpatialReference WEB_MERCATOR = SpatialReferences.getWebMercator();
// get default parameters
final ListenableFuture<ClosestFacilityParameters> paramsFuture = mClosestFacilityTask.createDefaultParametersAsync();
paramsFuture.addDoneListener(new Runnable() {
@Override
public void run() {
try {
mClosestFacilityParameters = paramsFuture.get();
// add your Facility
List facilities = new ArrayList<Facility>();
facilities.add(new Facility(new Point(-13045663.744, 4039204.580, WEB_MERCATOR)));
mClosestFacilityParameters.setFacilities(facilities);
// add your Incident
List incidents = new ArrayList<Incident>();
incidents.add(new Incident(new Point(-13052490.008, 4035542.739, WEB_MERCATOR)));
mClosestFacilityParameters.setIncidents(incidents);
// solve
final ListenableFuture<ClosestFacilityResult> resultFuture = mClosestFacilityTask.solveClosestFacilityAsync(mClosestFacilityParameters);
resultFuture.addDoneListener(new Runnable() {
@Override
public void run() {
try {
// get ClosestFacilityRoute by facility and incident indexes
ClosestFacilityResult result = resultFuture.get();
ClosestFacilityRoute mClosestFacilityRoute = result.getRoute(0, 0);
} catch (Throwable e) {
Log.e("Facility", e.toString());
}
}
});
} catch (Throwable e) {
Log.e("Facility", e.toString());
}
}
});
} You will need to use your own network data service but this should be a more concise sample. I hope this helps!
... View more
07-17-2017
12:59 PM
|
1
|
5
|
1756
|
|
POST
|
For Android, using the Android File Transfer utility, you can transfer files to: /Android/Data/com.esri.navigator/files/downloads/123.mmpk This will be a way to sideload mmpks without needing to download them onto the device over WiFi.
... View more
07-17-2017
12:07 PM
|
1
|
0
|
1871
|
|
POST
|
I am not seeing this. I encourage you to check your application tag and the android:label property in your manifest file to ensure that the name you want is shown.
... View more
07-17-2017
06:31 AM
|
0
|
5
|
1930
|
|
POST
|
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MapView mapView = (MapView) findViewById(R.id.mapView);
ArcGISMap map = new ArcGISMap(Basemap.Type.DARK_GRAY_CANVAS_VECTOR, 0, 0, 4);
mapView.setMap(map);
SketchEditor sketchEditor = new SketchEditor();
mapView.setSketchEditor(sketchEditor);
sketchEditor.start(SketchCreationMode.FREEHAND_LINE);
} This is a basic implementation. It may require additional configuration on your end to suit your needs.
... View more
07-17-2017
06:29 AM
|
1
|
5
|
2034
|
|
POST
|
Do you have an idea of how many people this is affecting in regards to your application? This helps build a case regarding this issue.
... View more
07-17-2017
06:17 AM
|
0
|
2
|
2969
|
|
POST
|
Yeah, I am working with my resources regarding the quick movement. Do you see that quick movement being part of your regular workflow? Is this something you believe your users will run into often?
... View more
07-13-2017
08:33 AM
|
0
|
4
|
2969
|
|
POST
|
Hi Francis Gagne, I had a chance to test it out myself. I am at UC this week so when I get a chance, I will try to walk over to the Android SDK guys tomorrow and show them what I am seeing as well and see what we can do about it. I am really only seeing the map pan when I drag my finger quickly across the map. If I draw anything else, the map does not pan as it regularly would. Are you seeing the map pan like it regularly would or seeing it pan only if you draw quickly? Just want to confirm we are seeing the same behavior... Thanks, Alexander
... View more
07-10-2017
08:36 PM
|
0
|
6
|
2969
|
|
POST
|
I was referring to the onTouch, not the onScroll. When you override that, do you see the behavior you wish?
... View more
07-10-2017
12:12 PM
|
0
|
8
|
2969
|
|
POST
|
carloslopezolarte I believe you can. What are your requirements? Can you go into a little more depth into what exactly you are looking to do?
... View more
07-10-2017
09:31 AM
|
0
|
0
|
706
|
|
POST
|
Awesome sgill-esristaff! Thanks for all the hardwork that your team put into the latest release. I am really excited to use it.
... View more
07-10-2017
09:30 AM
|
0
|
0
|
3542
|
|
POST
|
Pedro Francisco de Sousa Neto I believe you want to use the identify task: IdentifyTask | ArcGIS Android 10.2.9 API This sample should help you: Identify Task | ArcGIS for Developers Please let me know if you have any further questions after reviewing the above documentation.
... View more
07-10-2017
09:28 AM
|
0
|
0
|
1124
|
|
POST
|
Darwin Hamad, I am glad you were able to get it working for you. I went and did some work with popups this past week and while it is not perfect, I think you may find aspects of it useful in your work: GitHub - nohe427/KtPopup: Kotlin Popups I hope this helps! Alexander
... View more
07-10-2017
09:24 AM
|
1
|
0
|
3269
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-15-2014 03:16 PM | |
| 1 | 01-06-2015 03:33 PM | |
| 1 | 12-02-2014 10:47 AM | |
| 1 | 07-15-2014 03:31 PM | |
| 1 | 09-23-2014 03:59 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|