Hi d2mathi,
Yes the API works with the Wireless Toolkit.
Is it just a still image that you need to load to the device, where the image's resolution is larger than the screen's resolution and you can use the navigation keys to focus on a different area of the image each time?
Or is it that you need to scroll beyond the image's boundaries? If that's the case, I wouldn't suggest using still images and displaying them one after the other, when you reach the image's borders, as some low end devices have limitations on the size of the .jar file.
You could use the Nokia Maps API in order to display a particular city by giving the city's coordinates as arguments to the appropriate functions and the zoom level you wish to have. The API uses tiles that are dynamically downloaded over the network, each time a new location is needed, thus you could run your code on a very large range of mobile devices that support MIDP2.0/CLDC1.1.
I tested successfully this code that displays Rome on the toolkit's DefaultFxPhone1 emulator:
Code:
import com.nokia.maps.common.GeoCoordinate;
import com.nokia.maps.map.MapCanvas;
import com.nokia.maps.map.MapDisplay;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.*;
public class NokiaMap extends MIDlet
{
Display display;
MapCanvas mapcanvas;
Form f;
MapDisplay mapdisplay;
GeoCoordinate geo;
public void startApp()
{
f=new Form("");
display=Display.getDisplay(this);
try
{
mapcanvas = new MapCanvas(display);
mapdisplay=mapcanvas.getMapDisplay();
geo=new GeoCoordinate(41.90311, 12.49576, 0.0f);
mapdisplay.setCenter(geo);
mapdisplay.setZoomLevel(14,0,0);
display.setCurrent(mapcanvas);
}catch(RuntimeException e)
{
display.setCurrent(f);
f.append(e.getMessage());
}
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
}
though I would strongly recommend that you use the appropriate Nokia SDK if you plan to run the application on a Nokia Device.
For Nokia Series 40 devices, you can use this SDK:
http://www.developer.nokia.com/Devel..._SDK_for_Java/
For Nokia Symbian/S60 devices you can select an SDK from the link below:
http://www.developer.nokia.com/info/..._One_SDKs.html