Hi,
1) mapsforge supports again online tile providers at its rewrite branch.
You can try specifically Ludwig's rescue branch (its the rewrite with many improvements).
The relevant topic is at:
https://groups.google.com/forum/#!topic/mapsforge-dev/zhI6jMHOEOw
And an example of online provider is at Samples app:
http://code.google.com/r/ludwigbrinckmann-mapsforge/source/browse/Applications/Android/Samples/src/main/java/org/mapsforge/applications/android/samples/DownloadLayerViewer.java?name=rescue
Certainly you can create your own tile source class serving your WMS / TMS server (I use it already with mine).
2) You can create map files from your own vector data.
mapsforge map writer uses osmosis for this process, so you have to use for input what
osmosis can accept (e.g. osm files), converting your own vector files to the proper format.
Pay attention also to your custom tag-mapping.xml file you'll use to map writer.
Then you can create your own render theme.
The process consists of creating 2 files, the vector map file and the its render theme xml file (with its patterns / symbols).
I create often vector maps from own data without much hassle.
3) There is confusion about the fact that even though the map is in Web Mercator (EPSG: 3857) projection,
the actual coordinates used are in lat / long (EPSG: 4326).
i.e. the input osm data you feed to the map writer use EPSG:4326 projection.
Best regards, Emux
https://play.google.com/store/apps/details?id=gr.talent.cruiser
On Thursday, December 19, 2013 3:04:29 AM UTC+2, maven apache wrote:Hi:I am new in mapsforge and I have two questions:1 Does mapsforge support online map sourece?We have our own map data(tiles) deployed by OGC, WMTS, I wonder if this is supported. Or may be it can be implement by some extra work.2 The vector data formatGenerally the vector data format is bound to the map renderingAnd from the wiki, it seems that mapsforge support the "Mapsforge Binary Map File Format". And "POI" and "Way" are mentioned in the page.Then I want to know is it possible to create the Mapsforge Binary Map File from our own vector data(shapfile format), and render them?In my opinion, we may do this:1 create the " Mapsforge Binary Map File" according to the "Specification"2 create the render theme( the map style file)Is this the right way?3 The projectionMapsforge use "MercatorProjection" which tell the tile index for a given position(lat/lng), but I want to know when you generate map tile for a given x,y,level, does the projection is considered?IMO, the map data has nothing to do with the projection, different project with the same map data source will generate different map style.If I am right, then I think we may change the projection at runtime.Thanks.
In fact, our own data have no tags like "way=hightway" or "waterway=river".However, every feature(point,line,polygon) of our data will have a field named "fid" which is used to distinguish features of different category.For example, a feature whose fid is 1001 would be a highway, and a 2004 will be a river and etc..Then, it seems that the osmosis can not meet my requirement, isn't it?