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
I imagine it is a problem with the tiles themselves. When I use the following snippet, I have no issues displaying the information. I have more issues when I declare it as a tile layer:
<SPAN class="keyword token">public</SPAN> <SPAN class="keyword token">class</SPAN> <SPAN class="token class-name">MainActivity</SPAN> <SPAN class="keyword token">extends</SPAN> <SPAN class="token class-name">AppCompatActivity</SPAN> <SPAN class="punctuation token">{</SPAN> MapView mapView<SPAN class="punctuation token">;</SPAN> @Override <SPAN class="keyword token">protected</SPAN> <SPAN class="keyword token">void</SPAN> <SPAN class="token function">onCreate</SPAN><SPAN class="punctuation token">(</SPAN>Bundle savedInstanceState<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">super</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">onCreate</SPAN><SPAN class="punctuation token">(</SPAN>savedInstanceState<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="token function">setContentView</SPAN><SPAN class="punctuation token">(</SPAN>R<SPAN class="punctuation token">.</SPAN>layout<SPAN class="punctuation token">.</SPAN>activity_main<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> mapView <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">(</SPAN>MapView<SPAN class="punctuation token">)</SPAN> <SPAN class="token function">findViewById</SPAN><SPAN class="punctuation token">(</SPAN>R<SPAN class="punctuation token">.</SPAN>id<SPAN class="punctuation token">.</SPAN>mapView<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> ArcGISMap map <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ArcGISMap</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Basemap</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ArcGISMapImageLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.geodata.uni-goettingen.de%2Farcgis%2Frest%2Fservices%2FBasemap%2FBasemap_Default%2FMapServer" target="_blank">https://www.geodata.uni-goettingen.de/arcgis/rest/services/Basemap/Basemap_Default/MapServer</A><SPAN>"</SPAN></SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> mapView<SPAN class="punctuation token">.</SPAN><SPAN class="token function">setMap</SPAN><SPAN class="punctuation token">(</SPAN>map<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
You may want to reviewing anti aliasing properties when exporting your tiles if you wish to use your tiles directly.
Awesome! Glad that helped!
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.
Yes, this is a tiled map service:Basemap/Basemap_Default (MapServer)
The annotations are part of the tiled service.
Can you share the layer?
This is a tiled service layer?
Are the annotations part of the tiled service or are they a separate service all together?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.