This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to load map tiles fast in my android project ?

0
1

In my app all thing work properly but map not loading.I have try both way offline and online but map not loading.

This is my android code :-

MapView map = (MapView) findViewById(R.id.mapView); 
map.setMultiTouchControls(true);
map.setClickable(true);
map.setMinZoomLevel(4);
map.getController().setZoom(13);
map.setUseDataConnection(false);
map.setTileSource(TileSourceFactory.MAPQUESTOSM);

I have used osmdroid-android-4.2.jar, slf4j-android-1.5.8.jar, and OSMBonusPack. for creating map and map functionality.

And also the tile loading is very 'blocky' and not load

How to load fast map or tile in my android project ?

asked 02 Mar '15, 09:16

nehalkumar's gravatar image

nehalkumar
31337
accept rate: 0%

edited 03 Mar '15, 06:38

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701

1

Does the problem persist when switching to a different tile provider? At the moment you seem to be using MapQuest Open.

(02 Mar '15, 11:46) scai ♦

2 Answers:

1

Hello there! Wrong party. Try the issue queue for OSMdroid https://github.com/osmdroid/osmdroid/issues

This help forum is all about the OpenStreetMap.org mapping project but not any software you might use to create maps.

answered 06 Mar '15, 16:43

lxbarth's gravatar image

lxbarth
252
accept rate: 0%

edited 06 Mar '15, 16:50

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

-3

If you are using map only for marker display purpose use lite map special feature by google map Lite Mode

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:name="com.google.android.gms.maps.MapFragment"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
map:cameraZoom="13"
map:mapType="normal"
map:liteMode="true"/>

map:liteMode="true" it will make map in lite mode with some limitation
AND
For too many marker go with clustering of marker google link
clustering will increase readability of map BEFORE CLUSTER

enter image description here
AFTER CLUSTER enter image description here

answered 07 Nov '15, 11:16

tiwari9773's gravatar image

tiwari9773
-2
accept rate: 0%

edited 07 Nov '15, 12:46

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

Source code available on GitHub .