I got it working now! 🙂 My failure was to think that as it is written in the android api for arcgis the brackets have to be around the bingkey: FROM THE DOCUMENTATION: The following are examples of how you can work with the BingMapsLayer class. The code will add a map with a Bing Maps Layer of Aerial style. Java usage: MapView mv = new MapView(this); mv.addLayer(new BingMapsLayer( " [your Bing Maps key ]", MapStyle.Aerial)); setContentView(mv); To initialize a Bing map in a WebMap please see the class description of the MapView. After the initialization of the bingmapslayer i had to call .getBingLogo(); because if I don't do that i get a android strict mode error because getBingLogo() is called in the ui-thread. Thanks for the help!
BingMapsLayer lyr = new BingMapsLayer("AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf", MapStyle.AerialWithLabels); map.addLayer(lyr);
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.