- You must be logged in to reply to this topic.
I would like to make natural=water objects appear at different zoom levels depending on their size. I’ve tried the same bunch of “bBoxWeight rules” found at tagmapping-min.xml for ways and rule <osm-tag key=’natural’ value=’water’ zoom-appear=’8′ /> for an osm file containing several natural=water closed polygons (sized 1300 m2 to 81 km2) and they all do appear at the same zoom level.
Any suggestion how could I use tagmapping.xml and style.xml files (and tagtransform as well if needed) to get say large natural=water polygons appear at zoom level=6, mid sized polygons at zoom-level=8 and small polygons at zoom-level=10?
The bboxweight is not included in OSM.
You have to calculate these and add it to the OSM-Objekts
First filter the Objects you want to add bboxweight and then
Something like that:
osmconvert myosmfile.osm –max-objects=999999999 –add-bboxweight-tags -o=myosmfile_poly_weight.osm
Ensure that you use the very latest OSMCONVERT in Linux and/or WSL – older ones cannot handle the actual big OSM-IDs
Thanks a lot for the hint. I didn’t know that option of osmconvert. Just a remark, max-objects and add-bboxweight-tags must be preceded by a double hyphen (-). It was removed when formatting it as code.
This site uses cookies, Google Fonts and Google Analytics. By continuing to browse the site, you are agreeing to our use of cookies, Google Fonts and Google Analytics.
OKLearn moreWe may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.
Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.
These cookies are strictly necessary to provide you with services available through our website and to use some of its features.
Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.
We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.
We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.
We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.
Google Webfont Settings:
Google Map Settings:
Google reCaptcha Settings:
Vimeo and Youtube video embeds:
You can read about our cookies and privacy settings in detail on our Privacy Policy Page.
Datenschutz