Archive for tutorial
Using LWUIT with J2memap
One of J2memap user wanted to use the application with the LWUIT framework from Sun. So, after some research, it appears that only one modification was needed: a callback to notify the host that the screen needed to be repainted.
This has been done by adding a new callback in the mapDisplayListener:
asBeenRepaint();
So here is the code [...]
CloudMade available on J2memap
CloudMade is a company which provide services and support on top of OpenStreetMap datas. It’s very easy to integrate CloudMade with J2memap. To do this, let’s take our hello world example, and put cloud made data instead of default map datas. You just need a CloudMade API Key, so contact CloudMade for this.
The cloudMade URL [...]
Adding location to a non GPS phone : using OpenCellID
1) Introduction
In this two parts article, we will introduce mobile positioning with CellID, and the open source database of CellIDs: OpenCellID. We will see how to use it through a simple sample. The second part will demonstrate how to use OpenCellID with OpenStreeMap and the 8Motion library to create a full interactive mobile mapping experience [...]
Tutorial: loading a KML file using the J2memap library
Ok, following some requests, here is another tutorial on how to use the J2memap library. First, note that if you just want to display a KML file on mobile, you can use 8Motions directly, no need to create your own application.
Anyway, here we are going to show you how to create a very simple app [...]
Howto view a KML file on mobile
One of the most interesting feature of 8Motions, is the ability to view a KML file on mobile. Here is a step by step to help you to do so.
Here is how.
So, lest use this KML sample, created using MyMaps from Google:
(you can see this page using this direct link ).The KML link is link [...]
Summary of the what is supported in J2memap as external format
Just a short reminder, about what is supported as type of file for j2memap (both the library and the program):
- .loc
Used by geocaching application
- .gpx
Used by many gps related program. A subset of GPX1.1 is available, mainly include support for waypoint, trackpoint, track, ….
- .kml
Google Earth format (and used by many mapping application).
viewformatviewrefreshmodenamestyleurlstyleiconstylecolorcoordinates
and a few [...]
Using WMS layers with j2memap library….
In the latest release of J2memap library, a new interface has been defined: MapCustomOverlay
If you create a class that implements MapCustomOverlay, you will have the ability to dsiplay new layers on top of an existing map.
The implementation is easy, there are two methods:
String getTileURL(int x,int y,int z,int sizeSq,boolean isSat);
and
public boolean isTransparent();
The last [...]
J2memap Tutorial #1: Hello Map!
I will start a series of tutorial around J2memap as a powerful library to be used to display gelocalized content.
This first tutorial will focus on the easiest thing to do: display a map on a phone! With a few line of codes, you will have the equivalent of GoogleMap on your PC…
That’s quite easy. You [...]