Change RenderTheme to make all cities,towns,suburbs etc to display ALWAYS - yet it ignores my zoom min,max values

49 views
Skip to first unread message

gm...@eaiinfo.net

unread,
May 31, 2013, 2:16:27 PM5/31/13
to mapsfo...@googlegroups.com
1. create custom rendertheme.xml
2. change all places to show at all zoom levels
3. it will not affect zoom levels - cities show farther out, suburb,town,village show at lower no matter what I put for max/min zoom levels

<rule e="node" k="place" v="*">
<rule e="node" k="place" v="suburb|town|village" zoom-min="1" zoom-max="125">
<caption k="name" font-style="bold" font-size="15" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
</rule>
<rule e="node" k="place" v="city" zoom-min="1" zoom-max="125">
<caption k="name" font-style="bold" font-size="25" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
</rule>
</rule>


I expect the cities,towns,etc to ALWAYS show their labels at any zoom level

0.3.0 Android

Can't get it to work with any zoom levels, or any wild cards, ALWAYS goes back to its default and doesnt let me show cities at same time as suburbs

<?xml version="1.0" encoding="UTF-8"?>
<rendertheme xmlns="http://mapsforge.org/renderTheme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://mapsforge.org/renderTheme ../renderTheme.xsd" version="1" map-background="#ffffff">

		<rule e="node" k="place" v="*">
<caption k="name" font-style="bold" font-size="25" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
</rule>
</rendertheme>

Ludwig

unread,
Jun 1, 2013, 4:48:39 AM6/1/13
to mapsfo...@googlegroups.com
There are two things that affect what is shown at a particular zoom level: the settings when the mapfile is generated and the rendertheme.

I have not investigated your problem in any detail, but my hunch is that the data you are trying to display is simply not included in the mapfile for the zoomlevel you are trying to display.

The file you need to look at is the tag-mapping.xml in the resources folder for the mapfile writer.

Ludwig


--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages