{"id":82,"date":"2016-12-28T14:49:27","date_gmt":"2016-12-28T14:49:27","guid":{"rendered":"http:\/\/blog.get-map.org\/?p=82"},"modified":"2016-12-28T14:49:27","modified_gmt":"2016-12-28T14:49:27","slug":"added-a-monochrome-osm-style","status":"publish","type":"post","link":"https:\/\/blog.get-map.org\/index.php\/2016\/12\/28\/added-a-monochrome-osm-style\/","title":{"rendered":"Added a monochrome OSM style"},"content":{"rendered":"<p><a name=\"preamble\"><\/a> <\/p>\n<p>I&#8217;ve now added a (mostly) monochrome variant of the CartoOSM style which is especially suitable for use in combination with overlays as it makes colored features from the overlay stand out more prominently.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.get-map.org\/wp-content\/uploads\/2016\/12\/monochrome-style.png\" style=\"border-width: 0; vertical-align: text-bottom;\" alt=\"align=right\"><\/p>\n<p><!--more--><\/p>\n<p>The style is only mostly monochrome as I can&#8217;t simply run the rendered results through an image converter to remove colors completely.<\/p>\n<p>Instead I needed to convert all explicit color settings in the style file into their monochrome equivalent up front so that things get rendered in monochrome right away.<\/p>\n<p>For a complete monochrome result I would also have to maintain converted copies of all shield symbolizer images and all polygon fill patterns. So far I&#8217;ve been too lazy for this, but I may consider to do this at some later point when I get to scriptify the stylesheet tweaking process (for this initial test I modified all color values in the style sheet manually &#8230;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve now added a (mostly) monochrome variant of the CartoOSM style which is especially suitable for use in combination with overlays as it makes colored features from the overlay stand out more prominently.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/posts\/82\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.get-map.org\/index.php\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}