Betrachte 5 Beiträge - 1 bis 5 (von insgesamt 5)
  • Autor
    Beiträge
  • #52956
    Abi_Suyoso
    Teilnehmer

    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.

    #52959
    Abi_Suyoso
    Teilnehmer

    Adding 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.

    #52961
    Avatar-FotoJohnPercy
    Teilnehmer

    Unfortunately 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.
    Screenshot_20230212-083311
    Screenshot_20230212-083227
    The search would find any car repair shop with Tesla in the name.

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    2 Teilnehmer(n) gefällt dieser Beitrag
    #52964
    Avatar-FotoJohnPercy
    Teilnehmer

    PS It also depends on how thoroughly the area has been mapped. Trying a search for Honda locally returned very few results.

    Screenshot_20230212-084309

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    1 Teilnehmer(n) gefällt dieser Beitrag
    #52982
    Abi_Suyoso
    Teilnehmer

    Thank you John. I will use your suggestion.
    Maybe in future releases, Mapsforge will provide more capability
    for accessing variables.

Betrachte 5 Beiträge - 1 bis 5 (von insgesamt 5)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.