Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #56086
    troNpo
    Participant

    Hello, it is possible to add the line
    <hillshading zoom-min=”9″ zoom-max=”20″ />
    As a layer selection menu item?
    I can’t do this using the usual “cat=” attribute
    Thank you

    #56088
    Avatar photoEmux
    Participant

    Hillshading is controlled externally by the app settings.

    It is not like all the other internal map theme elements.


    Cruiser and Mapsforge developer

    #56089
    troNpo
    Participant

    Ok, thanks, the idea of not having to go to the app’s settings to activate deactivate.

    #56091
    ikoms
    Participant

    If you use oruxmaps you can add a button to the left or right menu as you wish

    #56157
    Avatar photoEmux
    Participant

    Hillshading can be included in the layers menu.

    For instructions please see here.


    Cruiser and Mapsforge developer

    1 user thanked author for this post.
    #58249
    LaurentG
    Participant

    Hello @Tobias this is for you !

    Since it’s feasible (I tested, it works !), it would be great to update Elements & Elevate to have the hillshading optional (ie.selectable in layer menu).

    Personnally, I have customized my own copy of these themes, to make hillshading optional with two levels of options : Hillshading at zoom 9-11 and Hillshading at zoom 12-17
    And never shading in “City” menu.

    I would prefer that these “options” are also in the OOTB themes, and not to have to replicate them in future versions….

    #58267
    Avatar photoTobias
    Keymaster

    Hi LaurentG,
    The hillshading on/off switch should already be in your app, at least in OruxMaps it’s available. I don’t want to increase the number of options in elevate as there are already too many im my opinion.
    But I can try disabling hillshading by default for city if it’s possible.
    Best regards,
    Tobias

    Developer of Elevate mapstyle

    #58269
    Avatar photoEmux
    Participant

    Hillshading in render themes was my idea, but we did not include it in Mapsforge themes.

    It is better for applications to handle hillshading, as there are various options, cache, etc.


    Cruiser and Mapsforge developer

    2 users thanked author for this post.
    #58271
    LaurentG
    Participant

    Thank you @Tobias and @Emux for answering.

    Yes, I know that we can, in Orux, globally switch hillshading on or not.

    For hillshading of “non-mapsforge” maps, Oruxs allow to have a button on screen (and I’m having it), but unfortunately not for mapsforge maps hillshading. We need to go deep in the menus to activate/deactivate hillshading.
    And this requires 5 clics… while select an option in current Theme needs only 2 clics…I’m not ashame to be lazy…. 😉

    We can also (in Orux) deactivate mapsforge hillshading, and in this case, the “global hillshading” (and then the button) applies also to mapsforge maps. It’s actually what I did before… until I discovered the “hillshading” istruction in mapsforge’s render theme.

    The major advantage, in my opinion, to use this way of hillshading, is that it allow to have for mapsforge maps hillshading at certain zoom levels, and not at other zoom levels, and even more, it allows to have magnitude of hillshading depending on zoom level. And really, it’s better to have “slight” hillshading at low zoom levels, but more “strong” hillshading at higher zoom levels.
    For all these reasons, I switched to the “mapsforge’s hillshading” (for mapsforge maps).

    Anyway, you are the owner, and I would say the “master” of Elevate/Elements render theme, and it’s up to you to decide.
    We, users, have only to say thank you for providing us with these themes.
    And it remains very simple (for me) to replicate my customizations in your future versions of the Themes, when they come.

    Maybe one last remarks : If you do not create an option, visible by the user, I’m not sure it’s a good idea to remove the hlllshading from “City” style. It could be a little bit strange for users.
    If nevertheless you want to do so, it’s very easy : Even without “user option”, different styles can activate a specific “Cat”, that “City” would not activate, Cat upon which you condition hillshading

    #58272
    mbe57
    Moderator

    My understanding of Emux’ explanation is: the Mapsforge library does not support hillshading. Hence, whatever you configure in a Theme is meaningless. Except the App would implement a mechanics to interpret these specific hillshading definitions theme, outside/besides/beyond the Mapsforge software.
    Not sure is any app actually does that.

    #58273
    Avatar photoTobias
    Keymaster

    I haven’t tested the (relatively new) options to use cat on hillshading yet, that’s why I wrote a cautious if possible.

    I also use OruxMaps internal hillshading and deactivated mapsforge because it was the better option for me with all internal options for DEM based maps. I limit internal hillshading to only some ZLs and never turn it off. mapsforge hillshading was added only because of user demand – it was quite inferior at that time. Maybe I should check the current state of it.

    Hillshading as an option would imply that it is a theme function which is it only partially. You need to have DEM files, the app has to support it. So it would lead to additional support etc.

    For city I could add it to switching it with contour lines, makes sense to me.

    Developer of Elevate mapstyle

    1 user thanked author for this post.
    #58274
    Avatar photoEmux
    Participant

    Mapsforge and VTM support hillshading.

    There is a new improved implementation in the latest releases contributed by the community.


    Cruiser and Mapsforge developer

    #58276
    Avatar photoChristianK
    Keymaster

    There is a new improved implementation in the latest releases contributed by the community.

    This means it will last a while till this new version will be implemented in the major APPs and with Locus its questionable cause it uses a highly modified version.

    However, for me this is no problem – Orux and Locus have native hillshading.
    So we can wait till APPs are updated.

    #58278
    LaurentG
    Participant

    However, for me this is no problem – Orux and Locus have native hillshading.

    And for me, as well, this is not a problem, since hillshading of current version of Mapsforge works already fine and (as already said above) is IMHO better than Orux native hillshading, in the sense it is more flexible and allow variable magnitude depending on zoom level.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.