// tile renderer layer using internal render theme
this.tileRendererLayer = new TileRendererLayer(tileCache,
this.mapView.getModel().mapViewPosition, false, true, AndroidGraphicFactory.INSTANCE);
c.setMapFile(getMapFile());
1. The constructor TileRendererLayer(TileCache,MapViewPosition,boolean,boolean,AndroidGraphicFactory) is undefined
2. the method setMapFile(File) is undefined for typeTileRendererLayer
can u help me plz?
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/e0bf2c0f-27f4-4165-8e54-81a07fdbb0bd%40googlegroups.com.
something is wrong and i cant find it , since i replaced my old 0.5.0 jars with new 0.5.1-rc1 jars i get some errors like : "Could not find class 'org.mapsforge.map.layer.overlay.Marker[]" referenced from method blah.blah.activity<clinit>.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/3f7ef165-c76d-4a70-a8c1-10321aea9ac9%40googlegroups.com.
02-27 17:06:05.078: E/AndroidRuntime(31642): FATAL EXCEPTION: main
02-27 17:06:05.078: E/AndroidRuntime(31642): Process: com.vis.bigmap, PID: 31642
02-27 17:06:05.078: E/AndroidRuntime(31642): java.lang.NoClassDefFoundError: org.mapsforge.map.layer.overlay.Marker[]
02-27 17:06:05.078: E/AndroidRuntime(31642): at com.vis.bigmap.bigActivity.<clinit>(bigActivity.java:31)
02-27 17:06:05.078: E/AndroidRuntime(31642): at java.lang.Class.newInstanceImpl(Native Method)
02-27 17:06:05.078: E/AndroidRuntime(31642): at java.lang.Class.newInstance(Class.java:1208)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2154)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.ActivityThread.access$800(ActivityThread.java:144)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.os.Handler.dispatchMessage(Handler.java:102)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.os.Looper.loop(Looper.java:212)
02-27 17:06:05.078: E/AndroidRuntime(31642): at android.app.ActivityThread.main(ActivityThread.java:5137)
02-27 17:06:05.078: E/AndroidRuntime(31642): at java.lang.reflect.Method.invokeNative(Native Method)
02-27 17:06:05.078: E/AndroidRuntime(31642): at java.lang.reflect.Method.invoke(Method.java:515)
02-27 17:06:05.078: E/AndroidRuntime(31642): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
02-27 17:06:05.078: E/AndroidRuntime(31642): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:718)
02-27 17:06:05.078: E/AndroidRuntime(31642): at dalvik.system.NativeStart.main(Native Method)
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/fa0f7610-0015-4b34-a58b-6900137061f3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/54EF25B9.6080206%40gmail.com.
The Marker class is certainly part of the mapsforge-map 0.5.1-rc1 jar and I find it a bit strange that that is the first missing class your app complains about. The path or packaging of this part has also not changed.why does it say 'java.lang.NoClassDefFoundError: org.mapsforge.map.layer.overlay.Marker[]' with [] at the end?Ludwig
Marker[] marker_red = new Marker[6];
LatLong[] bigLatlng = new LatLong[5];
import java.io.File;
import org.mapsforge.core.model.LatLong;
import org.mapsforge.map.android.graphics.AndroidGraphicFactory;
import org.mapsforge.map.android.graphics.AndroidResourceBitmap;
import org.mapsforge.map.android.util.AndroidUtil;
import org.mapsforge.map.android.view.MapView;
import org.mapsforge.map.layer.cache.TileCache;
import org.mapsforge.map.layer.overlay.Marker;
import org.mapsforge.map.layer.renderer.TileRendererLayer;
import org.mapsforge.map.reader.MapDataStore;
import org.mapsforge.map.reader.MapFile;
import org.mapsforge.map.reader.MultiMapDataStore;
import org.mapsforge.map.rendertheme.InternalRenderTheme;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
public class bigActivity extends Activity {
static Marker[] marker_red = new Marker[6];
static Marker[] marker_blue = new Marker[6];
static Marker marker_green;
static LatLong[] blatlng = new LatLong[5];
static LatLong[] mlatlng = new LatLong[5];
// name of the map file in the external storage
private static final String IMAPFILE = "Germany.map";
private MultiMapDataStore multiMapDataStore;
static MapView mapView;
private TileCache tileCache;
private TileRendererLayer tileRendererLayer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidGraphicFactory.createInstance(this.getApplication());
mapView = new MapView(this);
setContentView(mapView);
mapView.setClickable(true);
mapView.getMapScaleBar().setVisible(true);
mapView.setBuiltInZoomControls(true);
mapView.getMapZoomControls().setZoomLevelMin((byte) 2);
mapView.getMapZoomControls().setZoomLevelMax((byte) 22);
this.tileCache = AndroidUtil.createTileCache(this, "mapcache",
mapView.getModel().displayModel.getTileSize(), 1f,
mapView.getModel().frameBufferModel.getOverdrawFactor());
}
@Override
protected void onStart() {
super.onStart();
try{
mapView.getModel().mapViewPosition.setCenter(new LatLong(51.111111, 14.111111));
mapView.getModel().mapViewPosition.setZoomLevel((byte) 12);
multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.RETURN_ALL);
multiMapDataStore.addMapDataStore(getMapFile1(), true, true);
multiMapDataStore.addMapDataStore(getMapFile2(), false, false);
// tile renderer layer using internal render theme
this.tileRendererLayer = new TileRendererLayer(tileCache,getMapFile(),
this.mapView.getModel().mapViewPosition, false, true, AndroidGraphicFactory.INSTANCE);
tileRendererLayer.setXmlRenderTheme(InternalRenderTheme.OSMARENDER);
mapView.getLayerManager().getLayers().add(tileRendererLayer);
marker_red[1] = Utils.createMarker(this,R.drawable.marker_red1t,null);
marker_red[2] = Utils.createMarker(this,R.drawable.marker_red2t,null);
marker_red[3] = Utils.createMarker(this,R.drawable.marker_red3t,null);
marker_red[4] = Utils.createMarker(this,R.drawable.marker_red4t,null);
marker_red[5] = Utils.createMarker(this,R.drawable.marker_red1,null);
marker_blue[1] = Utils.createMarker(this,R.drawable.marker_blue1t,null);
marker_blue[2] = Utils.createMarker(this,R.drawable.marker_blue2t,null);
marker_blue[3] = Utils.createMarker(this,R.drawable.marker_blue3t,null);
marker_blue[4] = Utils.createMarker(this,R.drawable.marker_blue4t,null);
marker_blue[5] = Utils.createMarker(this,R.drawable.marker_blue1,null);
marker_green = Utils.createMarker(this,R.drawable.marker_green_c,null);
marker[1].setLatLong(new LatLong(51.111111, 14.111111));
//mapView.getLayerManager().getLayers().remove(marker[1]);
SharedPreferences disk = getSharedPreferences("comcom",Context.MODE_PRIVATE);
getLong("blat",0));
if(lat!=0){
double lng = Double.longBitsToDouble(disk.getLong("blng",0));
mapView.getLayerManager().getLayers().add(bigActivity.marker_red[5]);
marker_red[5].setLatLong(new LatLong(lat, lng));
}
lat = Double.longBitsToDouble(disk.getLong("mlat",0));
if(lat!=0){
double lng = Double.longBitsToDouble(disk.getLong("mlng",0));
mapView.getLayerManager().getLayers().add(bigActivity.marker_blue[5]);
marker_blue[5].setLatLong(new LatLong(lat, lng));
}
}catch(Exception e){
Log.v("bigTAg",String.valueOf(e));
}
}
@Override
protected void onStop() {
super.onStop();
mapView.getLayerManager().getLayers().remove(this.tileRendererLayer);
this.tileRendererLayer.onDestroy();
}
@Override
protected void onDestroy() {
super.onDestroy();
this.tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidResourceBitmap.clearResourceBitmaps();
}
public MapDataStore getMapFile() {
return this.multiMapDataStore;
}
protected MapDataStore getMapFile1() {
File file= new File(context.getExternalFilesDir("MAPS"), IMAPFILE);
return new MapFile(file);
}
protected MapDataStore getMapFile2() {
File file = new File(context.getExternalFilesDir("MAPS"),"world.map");
return new MapFile(file);
}
}
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/408fd35a-26dd-4b59-b9a4-48e4498b51b1%40googlegroups.com.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="libs/mapsforge-core-0.5.1-rc1.jar"/>
<classpathentry kind="lib" path="libs/mapsforge-map-0.5.1-rc1.jar"/>
<classpathentry kind="lib" path="libs/mapsforge-map-android-0.5.1-rc1.jar"/>
<classpathentry kind="lib" path="libs/mapsforge-map-awt-0.5.1-rc1.jar"/>
<classpathentry kind="lib" path="libs/mapsforge-map-reader-0.5.1-rc1.jar"/>
<classpathentry kind="lib" path="libs/SwingMapViewer-0.5.1-rc1.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<classpathentry exported="true" kind="lib" path="lib/mapsforge-core-0.5.0.jar"/>
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/d4c90948-a4f2-4766-a665-1e9f616ec88e%40googlegroups.com.
[2015-02-27 18:09:17 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/mapsforge/map/reader/Deserializer;
[2015-02-27 18:09:17 - bigMap] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/mapsforge/map/reader/Deserializer;
Can you see the differences with version control?
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/5b9992d5-8d82-4b3b-95ad-013565d8ad4f%40googlegroups.com.
[2015-03-01 13:57:25 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/mapsforge/core/graphics/Align;
[2015-03-01 13:57:25 - Basir] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/mapsforge/core/graphics/Align;
Something is wrong there, have you added the jars also with IDE UI in classpath?
I suggest to try building a simple project (maybe irrelevant of mapsforge) with a single jar, to understand the IDE workings (I would try also with a clean workspace).