When we set Location determined by mobile networks in android settings and use nutiteq api for location, mapComponent will show GPS location determined by mobile networks, which is great. But is it possible to get radius where the phone can be from current location determined by mobile networks. So we can draw fancy circle like on android maps.
How do I implement a custom placemark icon? I have tried specifying a full URL in the KML, as well as using using the defaultIcon constructor argument (as a root URL and a full URL) to KmlUrlReader, none works. I get:
01-03 15:45:53.894: E/Map_Canvas(7351): Error in task runner: null
01-03 15:45:53.910: W/Map_Canvas(7351): java.lang.NullPointerException
01-03 15:45:53.910: W/Map_Canvas(7351): at com.nutiteq.wrappers.Image.getWidth(Unknown Source)
01-03 15:45:53.910: W/Map_Canvas(7351): at com.nutiteq.components.PlaceIcon.(Unknown Source)
I want to use DbStoredMap and when I run below code I see red screen.
mapComponent = new BasicMapComponent("tutorial", new AppContext(this),
1, 1, new WgsPoint(26.728878, 58.377959), 13); // Tartu
tileDb = new AndroidMbTilesDatabase(this,
"/sdcard/tartu_osm_mbtiles.db");
tileDb.initialize();
mapComponent.setTileDatabaseSystem(tileDb);
mapComponent.setMap(new DbStoredMap(new StringCopyright(
"OpenStreetMap (MBTiles)")));
Here is a log:
01-01 12:23:29.412: I/ActivityThread(24989): queueIdle