will there be support for openseamap tile server?

129 views
Skip to first unread message

vklein

unread,
Feb 2, 2012, 12:02:51 PM2/2/12
to mapsforge-dev
Hi,
I use mapsforge-map-0.2.4.jar in my app to display some targets for
navigational use on a Osmarender_Tile_Download view with
ItemizedOverlay and it works fine.

The people from openseamap on the bootshow in Düsseldorf in January
asked me if I could support openseamap in my app.

It would be nice If I could use the openseamap tile server, which has
an overlay layer with support for
seamarks. But I found no way to change the MapViewMode.class and other
dependencies.

The server could be reached with "http://tiles.openseamap.org/
seamark/",
{ numZoomLevels: 18, type: 'png', getURL:getTileURL,
isBaseLayer:false, displayOutsideMaxExtent:true }
This Info is from http://wiki.openseamap.org/index.php?title=De:OpenSeaMap_in_Website

I was very happy with the 0.2.4 since it solves all the problems I
have with downloading maps and calculation the right projection.

There was a hint in issue 204, that there is support for custom tile
download since revision 1741.
Will there be a new example with the outcomming 0.3.0 release?

Thanks

vklein



Martin Ždila

unread,
Feb 2, 2012, 1:54:31 PM2/2/12
to mapsfo...@googlegroups.com
Hello

It is possible in mapsforge 0.3:

MapView mapView = new MapView(this, new FreemapHikingTileDownloader());

FreemapHikingTileDownloader (example) is here: http://pastebin.com/bf2FkLCB

BR

--
Ing. Martin Ždila
OZ Freemap Slovakia
tel:+421-908-363-848
mailto:martin...@freemap.sk
http://www.freemap.sk

Reply all
Reply to author
Forward
0 new messages