POST
|
I eventually managed to find a solution. I changed the order of my cancellation methods to locationDisplay.setAutoPanMode(LocationDisplay.AutoPanMode.OFF);
locationDisplay.stop();
Now the map does no longer zoom to the location marker after stopping the service, which is great.
I still think there is a bug in the API, though. If I also put
locationDisplay.setShowLocation(false);
locationDisplay.setShowPingAnimation(false);
locationDisplay.setShowAccuracy(false);
BEFORE locationDisplay.stop() instead of after, it won't longer happen that there is still a static location
marker on the map after cancellation. But in return, the marker doesn't immediately show up when
the service is running and a new location was found. That's why I keep these three methods
AFTER locationDisplay.stop(). I don't really care if sometimes the marker is still visible after stopping the LocationDisplay
as long as the map does not zoom to this point.
... View more
03-09-2018
05:24 AM
|
0
|
0
|
512
|
POST
|
Hi, I'm using mapView.getLocationDisplay().setShowLocation(true);
mapView.getLocationDisplay().setAutoPanMode(LocationDisplay.AutoPanMode.RECENTER);
mapView.getLocationDisplay().startAsync();
to start the location service in my 100.2.1 Android app, and
mapView.getLocationDisplay().stop();
mapView.getLocationDisplay().setShowLocation(false);
mapView.getLocationDisplay().setAutoPanMode(LocationDisplay.AutoPanMode.OFF)
to stop it. I stop the service every time I pause the app,
and restart it only if the user clicks on the GPS button on my map.
However, it sometimes happens that when I stop the Location Display, then immediately pause and resume the app,
the location marker is still shown on the map (although it is no longer animated or moving).
This wouldn't really bother me that much, but unfortunately, if I now click on a POI on my map,
the MapView only briefly zooms to that POI (as expected), and then instantly zooms back to the
location marker, even though the AutoPanMode is off and the LocationDisplay is not running!
(mapView.getLocationDisplay().isStarted() = false!).
The same happens occasionally if I do not pause the app, but simply switch basemaps.
I.e., I stop the Location Display (the location marker disappears), switch to a new basemap, and
(sometimes) see the location marker on the map again, and the map keeps zooming back to this location.
Is this a bug in the API? Or what might cause this issue?
Thank you,
Claudia
... View more
03-05-2018
02:41 AM
|
0
|
1
|
1014
|
POST
|
It seems the problem only accurs on big screen solutions, so its probably a browser problem (performance). I noticed that the basemaps in both versions get the tiles from the service with equal speed. I guess the reason why the basemap in 3.x seems more fluent to me is that the view / map freezes until all tiles are downloaded and than refresh the view / map after. In 4.x the tiles are shown directly after downloading. I am looking for a solution to do the same in 4.x. What i want to do in 4.x when zooming / panning 1. Request Tiles 2. Freeze the view 3. Wait for all tiles 4. Unfreeze the view
... View more
09-28-2017
02:21 AM
|
0
|
0
|
675
|
POST
|
Hey, I am having some troubles to make my application "fluent" with the new API for JavaScript (4.4). In 3.3 when zooming/panning the new tiles load instantly and even to all sides. In 4.4 the tiles seem to load randomly and much slower. This can be seen in a minimalized example from Esri. 1. Is there a workaround/solution for this? Or will this be fixed in the future? 2. Do you have any other tipps to make applications more fluent in general? Best regards, Wiard
... View more
09-23-2017
04:32 AM
|
0
|
2
|
1292
|
POST
|
I solved the problem by using a MapImageLayer for the visualization, controlling the content by .definitionExpression. Clicking on the map i query the feature service for the geoemtry of the map point. Regards
... View more
08-20-2017
06:50 PM
|
0
|
0
|
372
|
POST
|
Hi, im working with the Javascript API 4.4 visualizing features on the map depending on a query. The map is lagging while panning and zooming depending on the amount of features / size of the browser window and level of zoom. I am using Chrome as a browser. I tried 2 things to visualize the features: Load the feature layer and do a definitionExpression by property afterwards. - This seemed to be a bad idea because when panning the map the query was executed again to fetch the features from the server. Create a query on the feature layer with a definitionExpression and than loop through all features on the feature service and add them to a graphicLayer. rooms.queryFeatures(query1).then(function(result) {
for (i = 0; i < result.features.length; i++) {
addGraphicsToLayer(result.features[i]);
}
roomsGraphic.visible = true;
}); The addGraphicsToLayer() handles the symbolization based on attributes of the feature. Following the feature is added to the GraphicsLayer roomsGraphic.add(feature);
In both cases the map gets laggy while in 3.x i was able to create a smooth map with even more features from other services using "mode: esri.layers.FeatureLayer.MODE_SELECTION" (Feature Service 3.x) on each feature layer. Is there another possibility to visualize features with a better performance on the view or am i missing something else? Thanks, Wiard
... View more
08-20-2017
06:32 AM
|
0
|
1
|
801
|
POST
|
Thanks for the suggestion! I reviewed all service parameters and noticed that text anti-aliasing was set to "force". First I changed it to "none" and re-published the map, but the problem remained. So I set anti aliasing to "normal" but changed the tile format from PNG8 to PNG32, and this resolved the issue.
... View more
08-16-2017
07:01 AM
|
0
|
1
|
941
|
POST
|
Yes, this is a tiled map service: Basemap/Basemap_Default (MapServer) The annotations are part of the tiled service.
... View more
08-16-2017
02:38 AM
|
0
|
3
|
941
|
POST
|
Hi, I have published a custom basemap which uses annotations. I'm displaying the annotations in Verdana, font size = 10, black color and a white halo around it. The attached screenshot "annotations_arcmap" displays one of the annotations as it is shown in ArcMap. When I embed the basemap into a JavaScript Web application, it still looks okay (see screenshot "annotation_Web"). When I embed it into Android using the old 10.2.9 SDK, annotations are not displayed properly any more (see screenshot "annotation_Android"), and when I embed it into an Android app using the new 100.1.0 SDK, it is even worse (see screenshot "annotation_Android100"). Is there anything I can do about this? Thank you, Claudia
... View more
08-11-2017
02:51 AM
|
0
|
5
|
1293
|
POST
|
Hi, Is there any information on when the "Select Features" module in "esri/layers/FeatureLayer" will be available for JavaScript API 4.3. Regarding this functionality matrix it will be released soon. Thanks, Wiard
... View more
06-14-2017
12:39 AM
|
0
|
1
|
504
|
POST
|
Hi, i am using the CAD to Geodatabase tool to import DWG files to a geodatabase. In ArcGIS 10.2 and 10.3, this works perfectly well. But when I try to do the same thing in ArcGIS 10.5 (no matter if I use the tool in ArcMap or if I use a Python script), I get the following error: 000354 : The name contains invalid characters. If this refers to table names in the DWG file myself, then I don't know what to do; I have no CAD software and cannot change the DWG files myself. And it wasn't a problem in earlier versions of ArcGIS... Can somebody help? Thanks, Claudia
... View more
06-12-2017
09:05 AM
|
0
|
5
|
2037
|
POST
|
Thanks, this helped me a lot! The bar on the bottom is invisible now and the "Viewpoint.toJSON" solution also works fine. Now I just need to find a solution for the graphics problem. The entire workflow in my app is a bit complicated: POIs are displayed by a feature layer on top of my map to provide a general overview of their locations. If a user clicks on a POI feature which lies inside a building polygon, the POI feature layer is set invisible and instead graphics (with the same symbols and attributes as the features) are added to a graphicsOverlay for all POIs which are on the same floor in the selected building (based on a overviewLayer.getFeatureTable().queryFeaturesAsync query). Maybe the error can be found somewhere within this workflow... I will try to figure it out.
... View more
05-16-2017
05:11 AM
|
0
|
0
|
327
|
POST
|
Hi, I'm currently migrating my complete Android app to the new API 100.0.0. I already mentioned that I am missing the Feature Selection Mode and a way of getting subtype descriptions but here are some more things I noticed: I could no longer find a way of storing the current map state when I pause the map activity. I.e. something like "restoreState" and "retainState". This means that my map always zooms back to the inital viewpoint, not to the user's last location. When I add and remove graphics dynamically, it occasionally happens that a removed graphic is still being displayed. I checked the size of the corresponding graphicsOverlay - it is empty, and the graphic cannot be selected. So maybe the graphic is cached somehow? Is there any way to refresh the graphicsOverlay to clear the cache? I licensed my app, included Esri attribution in the "About" screen of my app, and I do not use an ArcGIS Online basemap. But unlike in the old API, the Esri attribution bar ("powered by Esri") is always visible (and I must say, I find it quite irritating...). Can I disable it somehow? Is it included in all license levels? Otherwise, I am now almost done with the migration ... Thank you, Claudia
... View more
05-15-2017
01:37 AM
|
0
|
2
|
688
|
POST
|
Thanks, but this only works for domains, not for subtypes, or am I missing something? Field subtype = getFeatureTable().getField("subtype");
Domain domain = subtype.getDomain();
returns null because I don't have a domain, just the subtype.
... View more
05-09-2017
07:49 AM
|
0
|
1
|
317
|
POST
|
Hi, I have a feature service on ArcGIS for Server which I query in my Android app (using ArcGIS for Android 100.0.0). The feature service contains subtypes. When I select a feature, I want to display the subtype name in a popup window, but so far I only managed to get the subtype number (coded value), not the name. Is it possible to get the subtype name in Android? Thanks!
... View more
05-09-2017
06:07 AM
|
0
|
3
|
683
|
Title | Kudos | Posted |
---|---|---|
1 | 04-20-2017 01:55 PM | |
1 | 07-29-2016 12:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|