Tutorials and tips
![]()
Work in progress in this section…
Tutorials in the News
Select the category tutorial: you will find there all tutorials to begin your first application.
Some excerpts from the forum :
Own Map Integration
To create a new map provider, that’s quite simple:
- implement a MapOverlay interface
OR (even simpler)
- use the GenericOverlay class and provide your own “url”, like this:
GenericOverlay myOverlay=new GenericOverlay(”OpenStreetMap”,”http://tile.openstreetmap.org/!z!/!x!/!y!.png”);
There are various sepecific value available to manage x,y,z, or quadrant interface. If you want to do something more complex, you need to do it yourself.
Then, just do this:
mapDisaply.setCurMap(myOverlay);
(and by the way, you can add this in the list of map provider if you want).
Also see this post : cloudmade available on j2memap
Create an Overlay Using Quadran Location
To create an overlay, it’s quite easy: MapCruncher use a “quadrant” approach. I won’t explain it in details, but each tile has is located in a unique quadrant location. The good thing is that J2memap provide now an easy way to convert an x/y/z location into a quadrant, thanks to the “computeQuadrantString” function…
Read More in this topic on the Forum
EVEN ON MARKER
There is two ways to do it:
- use a MapDisplayListener and react to the events “onLocationSelected” and “onLocationOpenend”
- if you created the points through a track, you can also use the TrackListener and the events “onLocSelected” and “onLocOpened”
More
Have a look in the forum…
