POST
|
I followed the License your app on arcgis guide. I alse directed to developers.arcgis.com and sign in to my account. But on there i couldn't see an option for to create an account. So i couldn't obtain client id. How can i do this?
... View more
04-24-2015
10:02 PM
|
0
|
2
|
4658
|
POST
|
Thank you for the reply..No.. that's show on the map. I only want to show coordinates of the tapped point. But here shows unnecessary things. Here is the text that shows on text graphic: "Point[m_attributes[8966832.811,663665.135],m_description=com.esri.geometry.VertexDescription@7c5d0f85]" But i only want to see 8966832.811, 663665.135 on the text graphic.
... View more
04-07-2015
11:34 AM
|
0
|
0
|
460
|
POST
|
I want to identify the coordinates by tapping a point on the map.Here is my code snippet. mMapView.setOnSingleTapListener(new OnSingleTapListener() { private static final long serialVersionUID = 1L; public void onSingleTap(float screenX, float screenY) { mLocationLayer2.removeAll(); Point mapPoint = mMapView.toMapPoint(screenX, screenY); // Point pnt = (Point) GeometryEngine.project(mapPoint, mMapView.getSpatialReference(), SpatialReference.create(4326)); SimpleMarkerSymbol sms = new SimpleMarkerSymbol(Color.YELLOW,15, SimpleMarkerSymbol.STYLE.X); TextSymbol txtSym = new TextSymbol(20, String.valueOf(mapPoint), Color.RED); txtSym.setOffsetX(10); txtSym.setOffsetX(10); Graphic gMarker = new Graphic(mapPoint, sms); Graphic gText = new Graphic(mapPoint, txtSym); mLocationLayer2.addGraphics(new Graphic[] { gMarker, gText }); } }); Here when tapped on the map, appears a text symbol with "Point[m_attributes[8966832.811,663665.135],m_description=com.esri.geometry.VertexDescription@7c5d0f85]" But only i want to appear coordinates on the map. So how can i do that? Please help me on this.. Thank you
... View more
04-05-2015
12:10 AM
|
0
|
5
|
3949
|
POST
|
Thank you very much..If you can explain more the way that i should do from one of the options above it'll very helpful to me. I read GeoJSON Earthquake Map and Mil2525c Sample on the sample code. But i couldn't find a way to draw curve. I have some measurements like coordinates of the points where to place on the map, deflection angle between main tangents, radius tangent length etc. But i don't need to use all of those measurements..just some of them and draw the curve.Really i want to draw a railway path on the map. I looked the Symbol class and in that the Curves only wants 3 points coordinates as start and end points coordinates and the control point coordinate to draw the curve. But here i'm only having start and end coordinates..
... View more
03-22-2015
09:42 AM
|
0
|
0
|
894
|
POST
|
I want to draw curved lines between points on the map using ArcGIS runtime sdk with android.Can i do that? Is there any inbuilt methods to do that? What are the inputs that wants to draw the curve rather than coordinates on the relevent points?
... View more
03-21-2015
08:19 AM
|
0
|
2
|
5696
|
POST
|
Thanks for the rply .. I'll find in details more on FeatureService
... View more
03-19-2015
03:28 AM
|
0
|
0
|
306
|
POST
|
Hello every one..I'm doing a project and on that i decide to draw a path on the map by giving relevent coordinates and after that it draws on the map. Up to now i did that part by using your help as i very new to ArcGIS runtime.. Now i want to identify water paths, main roads that cross the drawn path.Here i want to identify all the road that cross the drawn polyline and put a marker on the crossing places at once.Can i do that on the ArcGIS runtime sdk with android or is there another way to detect?
... View more
03-16-2015
01:28 AM
|
0
|
2
|
3665
|
POST
|
thnx a lot.. Here route means object from Route or another?
... View more
03-12-2015
06:28 AM
|
1
|
1
|
1543
|
POST
|
Hello every one. I'm new to ArcGIS and I want to add path(polyline) on the map after giving coordinates where to draw. I follow the guide Display Information -> add graphics and text. But not displaying the path and even not occur any error. MapView mMapView = null; // The basemap switching menu items. MenuItem mStreetsMenuItem = null; MenuItem mTopoMenuItem = null; MenuItem mGrayMenuItem = null; MenuItem mOceansMenuItem = null; // Create MapOptions for each type of basemap. final MapOptions mTopoBasemap = new MapOptions(MapType.TOPO); final MapOptions mStreetsBasemap = new MapOptions(MapType.STREETS); final MapOptions mGrayBasemap = new MapOptions(MapType.GRAY); final MapOptions mOceansBasemap = new MapOptions(MapType.OCEANS); ArcGISTiledMapServiceLayer tms = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); // The current map extent, use to set the extent of the map after switching basemaps. Polygon mCurrentMapExtent = null; GraphicsLayer mLocationLayer; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_gis2); // Retrieve the map and initial extent from XML layout mMapView = (MapView) findViewById(R.id.map); mLocationLayer = new GraphicsLayer(); mMapView.addLayer(tms); // Set the Esri logo to be visible, and enable map to wrap around date line. mMapView.setEsriLogoVisible(false); mMapView.enableWrapAround(true); SimpleLineSymbol lineSymbol = new SimpleLineSymbol(Color.GREEN, 3, SimpleLineSymbol.STYLE.DASH); Polyline lineGeometry = new Polyline(); lineGeometry.startPath(-302557, 7570663); lineGeometry.lineTo(-302959, 7570868); lineGeometry.lineTo(-303042, 7571220); lineGeometry.lineTo(-302700, 7571803); lineGeometry.lineTo(-304043, 7576654); lineGeometry.lineTo(-300544, 7585289); lineGeometry.lineTo(-294365, 7592435); lineGeometry.lineTo(-290122, 7594445); lineGeometry.lineTo(-285283, 7595488); Graphic lineGraphic = new Graphic(lineGeometry, lineSymbol); mLocationLayer.addGraphic(lineGraphic); // Set a listener for map status changes; this will be called when switching basemaps. mMapView.setOnStatusChangedListener(new OnStatusChangedListener() { private static final long serialVersionUID = 1L; @Override public void onStatusChanged(Object source, STATUS status) { // Set the map extent once the map has been initialized, and the basemap is added // or changed; this will be indicated by the layer initialization of the basemap layer. As there is only // a single layer, there is no need to check the source object. if ((source == mMapView) && (status == STATUS.INITIALIZED)) { boolean mIsMapLoaded = true; } } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items from the Menu XML to the action bar, if present. getMenuInflater().inflate(R.menu.menu_gis2, menu); // Get the basemap switching menu items. mStreetsMenuItem = menu.getItem(0); mTopoMenuItem = menu.getItem(1); mGrayMenuItem = menu.getItem(2); mOceansMenuItem = menu.getItem(3); // Also set the topo basemap menu item to be checked, as this is the default. mTopoMenuItem.setChecked(true); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Save the current extent of the map before changing the map. // mCurrentMapExtent = mMapView.getExtent(); // Handle menu item selection. switch (item.getItemId()) { case R.id.World_Street_Map: mMapView.setMapOptions(mStreetsBasemap); mStreetsMenuItem.setChecked(true); return true; case R.id.World_Topo: mMapView.setMapOptions(mTopoBasemap); mTopoMenuItem.setChecked(true); return true; case R.id.Gray: mMapView.setMapOptions(mGrayBasemap); mGrayMenuItem.setChecked(true); return true; case R.id.Ocean_Basemap: mMapView.setMapOptions(mOceansBasemap); mOceansMenuItem.setChecked(true); return true; default: return super.onOptionsItemSelected(item); } } @Override protected void onPause() { super.onPause(); mMapView.pause(); } @Override protected void onResume() { super.onResume(); mMapView.unpause(); } Please help me on this. Thank you
... View more
03-11-2015
08:38 PM
|
0
|
5
|
5464
|
POST
|
I'm new to ArcGIS runtime sdk and i want to add simple markers on the map.. So i tried the guid-> Display Information -> add graphics and text codes and before that i made the map by referring guid -> Tutorials -> Use ArcGIS base map. After run this on my mobile device i got the error as follow. Error is on the Geometry normalized = GeometryEngine.normalizeCentralMeridian(mMapView.getExtent(), mMapView.getSpatialReference()); line. 03-10 10:20:38.475 4133-4133/com.example.t_buddhika.gis2 E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.t_buddhika.gis2/com.example.t_buddhika.gis2.gis2}: java.lang.IllegalArgumentException: Input geometry can't be null. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236) at android.app.ActivityThread.access$600(ActivityThread.java:145) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5099) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:803) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:570) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException: Input geometry can't be null. Please help me on this. Thank you very much.
... View more
03-09-2015
09:58 PM
|
0
|
2
|
3937
|
Title | Kudos | Posted |
---|---|---|
1 | 03-12-2015 06:28 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|