- AuthorPosts
- February 12, 2023 at 07:24 #52956Abi_SuyosoParticipant
Hi All,
I am not sure if the following question appropriate for this forum.
I am modifying a legacy rendertheme a bit because I want to display
car_repair business in my area. Here is the code:<rule e=”any” k=”shop” v=”car_repair”>
<rule e=”any” k=”name” v=”~” >
<symbol src=”file:../ele_res_LE/s_car_shop.svg” symbol-width=”14dp” zoom-max=”16″ />
</rule>
</rule>The problem is that this will show every brand cars on the map.
If I want to show a certain car service center,
let us say “Tesla”, on the map how can I do that?Thank you.
February 12, 2023 at 08:33 #52959Abi_SuyosoParticipantAdding information to the above question. I’ll give a more
specific example what I’ve done. Since Tesla is not available
in my area then I’ve chosen a Japan car company “Honda”
as an example. The following line is what I have:<rule e=”any” k=”name” v=”*Honda*” >
but not producing any result. However, I know there are
several Honda service centers in the area.February 12, 2023 at 09:39 #52961JohnPercyParticipantUnfortunately Mapsforge has very limited support for variables, so you can’t set a rule like that. I think you can’t even set the rule to match just Tesla.
However once you have the map displayed you can search the poi database. The example below is from Locus but you can get similar results from other apps.
The search would find any car repair shop with Tesla in the name.Voluntary and Velocity themes - https://voluntary.nichesite.org
2 users thanked author for this post.
February 12, 2023 at 09:45 #52964JohnPercyParticipantPS It also depends on how thoroughly the area has been mapped. Trying a search for Honda locally returned very few results.
Voluntary and Velocity themes - https://voluntary.nichesite.org
1 user thanked author for this post.
February 13, 2023 at 05:47 #52982Abi_SuyosoParticipantThank you John. I will use your suggestion.
Maybe in future releases, Mapsforge will provide more capability
for accessing variables. - AuthorPosts
- You must be logged in to reply to this topic.