POST
|
For Windows, it tells people to use the following to test the install: <script src="https://www.example.com/arcgis_js_api/library/4.5/dojo/dojo.js" ></script> In Linux, it tells people to use the following instead: <script src="https://www.example.com/arcgis_js_api/library/4.5/init.js" ></script> We used include "init.js" in the previous release, which one should be correct in 4.5? Thanks.
... View more
10-02-2017
07:44 PM
|
0
|
2
|
480
|
POST
|
For that case, both are ok actually as long as we got full control of the customized map view. But that's a different situation actually. When we're using ArcGIS Android Runtime SDK (we are using them since 2.x), apart from extending functionalities to fit our requirements, we also did some quick fixes / workaround to cope with the bugs and errors found in the SDK before the official fixes comes in. Inheritance plays an important roles while composition are not likely to contribute well in this aspect.
... View more
03-08-2017
05:54 PM
|
0
|
1
|
709
|
POST
|
Our customized map view is reused in multiple activities actually, where compass is needed in every one of them. Our compass also have some higher level user interactions and linkages with the map view rather a simple direction synchronization. We also have sub-classes of our customized map view as well. Actually, this can be done just like the sample given by Esri, it's good for demonstration purpose. But after refactoring with the reuse-perspective, it makes more sense for us to put those components (including compass) into our customized map view. Thanks, Mike.
... View more
03-07-2017
07:03 PM
|
0
|
3
|
709
|
POST
|
Say for example, in 10.2.8, our app extends MapView with custom compass and scalebar, and some workaround for unsolved bugs (e.g. https://community.esri.com/thread/172828#comment-620127). This extended MapView also further extended with customed features with different themes, in different activities within a single app. I'd been using similar paradigm to build apps with MapBox MapView (com.mapbox.mapboxsdk.maps.MapView) and Google MapView (com.google.android.gms.maps.MapView) where both are extendable. I hope the runtime SDK could provides better extensibility as the solution that we're building could sometimes exceeed the basic abilities came from the SDK. Thanks.
... View more
02-13-2017
11:31 PM
|
0
|
5
|
709
|
POST
|
In 10.2.8, we can create custom TileServiceLayer (Creating a custom TileServiceLayer in ArcGIS Android | ArcGIS Blog ). However, it seems we just cannot make it in 100.0. Is there a way for developer to create custom Tiled Layer in 100.0?
... View more
02-09-2017
08:19 AM
|
0
|
1
|
1255
|
POST
|
In 100.0, many classes (MapView, ArcGISTiledLayer, etc.) are declared as "final", in 10.2.8, those classes are not declared final which allows developers to extend for practical customization. It's simply not necessary and too restricted for real development now. Will the team make some moves to unlock the visibilities of those classes so that we can actually make use of this new SDK?
... View more
02-09-2017
12:33 AM
|
1
|
7
|
1798
|
POST
|
Hi Alexander, We'd did a bit more to get into the problem. When the LongPress event is triggered, we make an async call to get some results from web services, and show the callout when the result is arrived. OR when we do a view.postDelayed() and show the callout in Runnable.run(), similar case will occurred: // inside onLongPress(x, y) final Point pt = mapView.toMapPoint(x, y); mapView.postDelayed(new Runnable() { @Override public void run() { Callout callout = mapView.getCallout(); // ... customized the callout, callout.show(pt, view); } }); And I encountered this issue on Sony Xperia Z3 and Z3 compact at the moment.
... View more
07-10-2016
07:51 PM
|
0
|
1
|
866
|
POST
|
In high-res devices, the Callout in MapView flashes (hide and show) when tapping on the device screen, which affects user experience a lot. From analysis, the com.esri.android.map.MapOnTouchListner calls Callout.hide( ) in a number of events (e.g. onDoubleTapDrag). My design is to do an identify task on the MapView when user long tap on the screen and display the result in Callout. But with such an existing issue, the result is very frustrating. Do any other developers faced this issue as well?
... View more
02-24-2016
02:08 AM
|
0
|
5
|
3986
|
POST
|
I'd encounter a strange situation. When I do a mouse click very very near to a feature graphic, the InfoWindow pops up, but the 'click' event is not fired. I suppose the InfoWindow will not popup since the click is not really inside the graphic. It happens in ArcGIS JS version 3.15. Sample Code for testing: HTML <html> <body> <h3>ArcGIS Map Test</h3> <div id="mapDiv"></div> <div id="coord">[Coordinates]</div> </body> </html> CSS body { background-color: #999; padding: 5px; } #coord { padding-top: 10px; } JavaScript var BASEMAP_URL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"; var FEATURE_URL = "http://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Heritage_Trees_Portland/FeatureServer/0"; require(["esri/map", "dojo/domReady!", "dojo/on", "esri/geometry/webMercatorUtils", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color"], function(Map, Ready, on, webMercatorUtils) { var map = new Map("mapDiv", { // center: [114.11547731560663, 22.342798067078743], center: [-122.66025506265751, 45.500974827876064], zoom: 13, nav: false }); var baseMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer(BASEMAP_URL); map.addLayer(baseMapServiceLayer); var featureLayer = new esri.layers.FeatureLayer(FEATURE_URL); var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new esri.Color([0, 0, 0, 255]), 1), new esri.Color([0, 197, 255, 255])); featureLayer.setRenderer(new esri.renderer.SimpleRenderer(symbol)); featureLayer.on('mouse-over', function() { map.setMapCursor('pointer'); }); featureLayer.on('mouse-out', function() { map.setMapCursor('default'); }); featureLayer.on('click', function() { alert('on-click'); }); var template = new esri.InfoTemplate(); template.setTitle("Feature Info"); featureLayer.setInfoTemplate(template); map.addLayer(featureLayer); });
... View more
01-15-2016
01:29 AM
|
0
|
1
|
2363
|
POST
|
When Callout is displayed in MapView and we called MapView.setRotationAngle( ) continuously to update the real time rotation, the Callout will just keep flicking / refreshing. ArcGIS Android SDK hide the Callout during the rotation, and show it up again when the rotation is finished. The situation happens in ArcGIS Runtime SDK for Android 10.2.4 and 10.2.5. Is there any workaround to avoid the flicking problem?
... View more
12-21-2014
11:11 PM
|
0
|
0
|
3172
|
POST
|
Understood. Can the missing tiles (no data files / 404) be initialized at the first time it encounters the hit? Most people may never get the missing tile hit throughout his own session. But the current implementation force people try the thing they may never face in every single layers.
... View more
06-16-2014
12:10 AM
|
0
|
0
|
285
|
POST
|
In the HelloWorld example, the map access service.arcisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer. Even I did not add the layer to the MapView it always made a request to /ArcGIS/rest/services/World_Street_Map/MapServer/tile/-1/0/0. If I have 10 different layers in the MapView, it will got 10 requests for the -1/0/0. You know that tile does not exists, so why this thing happens?
... View more
06-09-2014
06:18 PM
|
0
|
3
|
2454
|
POST
|
Just tested with the new SDK 10.2.3, the problem persists. And the same problem also occurs in ArcGIS Collector in Google Play.
... View more
05-26-2014
01:46 AM
|
0
|
0
|
650
|
POST
|
From further analysis, same situation happens in the Collector for ArcGIS in Google Play (Version 10.2.2): To regenerate the issues: Step 1: Select any map in available in the Collector, we selected �??Community Addressing�?� Step 2: After entering the map, zoom out a little bit (as we want to realized the map cannot be updated when the map is zoomed in programmatically). Then perform 2 or more single taps (Do not double tap, as the map zoom in then) on the screen [ATTACH=CONFIG]32717[/ATTACH] Step 3: Select a feature on the map [ATTACH=CONFIG]32716[/ATTACH] Step 4: Select the �??Zoom to�?� in the menu [ATTACH=CONFIG]32715[/ATTACH] Step 5: The location is zoomed in, and the dynamic layer (GraphicsLayer we believe) got updated. However, the base tiles are never getting refreshed. [ATTACH=CONFIG]32713[/ATTACH] Step 6: The only way to make the base tile refresh is to do a pan / zoom manually. [ATTACH=CONFIG]32714[/ATTACH] Just a few single tap cause the issues. The situation is quite annoying for those who often use something like MapView.zoomToScale(Point, float) to show a location in MapView.
... View more
04-01-2014
06:27 PM
|
0
|
0
|
650
|
POST
|
We encountered a problem in SDK 10.2.2: After a MapView is received more than 2 single tap events, the base map (or the dynamic layer) will not be updated when we change the map scale programatically (e.g. MapView.zoomin() / zoomout() / zoomToScale() / etc.) The only way to refresh the MapView is to do a pan or pinch manually. The following code is for regenerating the problem. Basically, it creates a MapView, and do a "MapView.zoomin()" when OnSingleTap event is detected. You can do the following: 1) Perform a single tap on the MapView 2) Wait for 2 seconds 3) Perform a single tap on the MapView 4) Wait for 2 seconds ... You will see the map is zooming in, but the base tiles will not refresh. -------------------------------------------------------------------------------------------------------- package com.esri.arcgis.android.samples.helloworld; import android.app.Activity; import android.os.Bundle; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer; import com.esri.android.map.event.OnSingleTapListener; public class HelloWorld extends Activity { MapView mMapView = null; ArcGISTiledMapServiceLayer tileLayer; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mMapView = (MapView) findViewById(R.id.map); tileLayer = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); mMapView.addLayer(tileLayer); mMapView.setOnSingleTapListener(new OnSingleTapListener() { private static final long serialVersionUID = 1L; @Override public void onSingleTap(float x, float y) { mMapView.zoomin(); } }); } @Override protected void onPause() { super.onPause(); mMapView.pause(); } @Override protected void onResume() { super.onResume(); mMapView.unpause(); } } ----------------------------------------------------------------------------------------------------------------------
... View more
03-25-2014
08:02 AM
|
0
|
2
|
1084
|
Title | Kudos | Posted |
---|---|---|
1 | 02-09-2017 12:33 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|