osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.61k stars 1.01k forks source link

Make rendering addons to have indepedent styles #15916

Closed vshcherb closed 1 year ago

vshcherb commented 1 year ago
vshcherb commented 1 year ago
 test [] set []
* case  test [ contourColorScheme= "white"] set [ attrColorValue= #44ffffff]
* case  test [ contourColorScheme= "yellow"] set [ attrColorValue= #44fff29e]
* case  test [ contourColorScheme= "green"] set [ attrColorValue= #4400ff00]
* case  test [ contourColorScheme= "light_brown"] set [ attrColorValue= #119c5615]
*    * apply  test [ noPolygons= 1] set [ attrColorValue= #44ffead6]
* case  test [ contourColorScheme= "brown"] set [ attrColorValue= #44bd6819]
*    * apply  test [ noPolygons= 1] set [ attrColorValue= #44c39f7d]
* case  test [ contourColorScheme= "dark_brown"] set [ attrColorValue= #22522d0b]
*    * apply  test [ noPolygons= 1] set [ attrColorValue= #4437250b]
* case  test [ contourColorScheme= "red"] set [ attrColorValue= #44ff0000]
* case  test [] set [ attrColorValue= #ff0000]
*    * apply  test [ noPolygons= 1] set [ attrColorValue= #44ffead6]
* case  test [] set []
*    * case  test [ contourColorScheme= "white"] set [ attrColorValue= #44ffffff]
*    * case  test [ contourColorScheme= "yellow"] set [ attrColorValue= #44fff29e]
*    * case  test [ contourColorScheme= "green"] set [ attrColorValue= #4400ff00]
*    * case  test [ contourColorScheme= "light_brown"] set [ attrColorValue= #2aff7c00]
*    *    * apply  test [ noPolygons= 1] set [ attrColorValue= #2aff7c00]
*    *    * apply  test [ nightMode= 1] set [ attrColorValue= #2aff7c00]
*    * case  test [ contourColorScheme= "brown"] set [ attrColorValue= #35bd6819]
*    *    * apply  test [ noPolygons= 1] set [ attrColorValue= #44c39f7d]
*    *    * apply  test [ nightMode= 1] set [ attrColorValue= #44c39f7d]
*    * case  test [ contourColorScheme= "dark_brown"] set [ attrColorValue= #22522d0b]
*    *    * apply  test [ noPolygons= 1] set [ attrColorValue= #4437250b]
*    *    * apply  test [ nightMode= 1] set [ attrColorValue= #44c39f7d]
*    * case  test [ contourColorScheme= "red"] set [ attrColorValue= #44ff0000]
*    * case  test [] set [ attrColorValue= #2a0000ff]
*    *    * apply  test [ noPolygons= 1] set [ attrColorValue= #2aff7c00]
*    *    * apply  test [ nightMode= 1] set [ attrColorValue= #2aff7c00]
ivanPyrohivskyi commented 1 year ago

<renderingProperty attr="contourColorScheme"

ivanPyrohivskyi commented 1 year ago

How to test in main method https://github.com/osmandapp/OsmAnd/commit/b8af6bf85cb921d7d278ed0bca0f9fd211dfe2cb

xmd5a2 commented 1 year ago

Hiking addons committed to addons-hiking branch but doesn't work in OpenGL. Attribute to test: https://github.com/osmandapp/OsmAnd-resources/blob/72bba441d9e9ab08d3776a3df4ef028a2529ef95/rendering_styles/default.render.xml#L1377

ivanPyrohivskyi commented 1 year ago

Android fix for OpenGL: https://github.com/osmandapp/OsmAnd/commit/7b12d6dcc94b5264074ad3c018d373331399e66c

Place: https://github.com/osmandapp/OsmAnd/blob/7b12d6dcc94b5264074ad3c018d373331399e66c/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java#L336

iOS: https://github.com/osmandapp/OsmAnd-iOS/commit/5223d562d6f4f77a0185a9c961a5604f46ea8be1

ivanPyrohivskyi commented 1 year ago