{"id":205,"date":"2024-01-19T21:53:47","date_gmt":"2024-01-19T21:53:47","guid":{"rendered":"https:\/\/oomap.dna-software.co.uk\/help\/?p=205"},"modified":"2024-01-19T21:53:47","modified_gmt":"2024-01-19T21:53:47","slug":"sorting-out-symbol-alignment","status":"publish","type":"post","link":"https:\/\/oomap.dna-software.co.uk\/help\/sorting-out-symbol-alignment\/","title":{"rendered":"Sorting out symbol alignment"},"content":{"rendered":"\n<p>Oomap uses <a href=\"https:\/\/mapnik.org\/\" data-type=\"link\" data-id=\"https:\/\/mapnik.org\/\">mapnik <\/a>to produce its maps, and its maps are invariably orientated with True North up.  Therefore all the area symbols, labels and so on are orientated the same way, and it&#8217;s very difficult to change. That&#8217;s fine, until you want an orienteering map that&#8217;s aligned to magnetic North, and you live somewhere where magnetic North and true North don&#8217;t align.  This is what you get:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"504\" src=\"https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-10.png\" alt=\"\" class=\"wp-image-206\" srcset=\"https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-10.png 1015w, https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-10-300x149.png 300w, https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-10-768x381.png 768w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>I&#8217;ve been struggling with working out a sensible way of realigning the symbols. While labels can be rotated, I&#8217;ve not been able to find a way of rotating patterns such as the vineyards and cultivated land as shown above.<\/p>\n\n\n\n<p>Instead, it turns out to be easier to rotate the map data instead, then draw the map, then rotate it again to its final angle&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"509\" src=\"https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-12.png\" alt=\"\" class=\"wp-image-208\" srcset=\"https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-12.png 1014w, https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-12-300x151.png 300w, https:\/\/oomap.dna-software.co.uk\/help\/wp-content\/uploads\/2024\/01\/image-12-768x386.png 768w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<p>So, if you live somewhere with <a href=\"https:\/\/oomap.dna-software.co.uk\/#\/new\/oterrain-COPE-10\/13.417166434633303\/176.8823\/-39.5364\/\" data-type=\"link\" data-id=\"https:\/\/oomap.dna-software.co.uk\/#\/new\/oterrain-COPE-10\/13.417166434633303\/176.8823\/-39.5364\/\">lots of vineyards and orchards<\/a>, and where your compass points the wrong way &#8211; maps should now look better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oomap uses mapnik to produce its maps, and its maps are invariably orientated with True North up. Therefore all the area symbols, labels and so on are orientated the same way, and it&#8217;s very difficult to change. That&#8217;s fine, until you want an orienteering map that&#8217;s aligned to magnetic North, and you live somewhere where [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":2,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/posts\/205\/revisions\/210"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/media\/208"}],"wp:attachment":[{"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oomap.dna-software.co.uk\/help\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}