{"id":286,"date":"2023-10-23T10:37:25","date_gmt":"2023-10-23T10:37:25","guid":{"rendered":"https:\/\/mapio.cymru\/?p=286"},"modified":"2023-10-24T14:30:09","modified_gmt":"2023-10-24T14:30:09","slug":"map-sylfaen","status":"publish","type":"post","link":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/","title":{"rendered":"How to use Mapio Cymru as a Welsh-language base map on your system"},"content":{"rendered":"<p>A couple of people have asked me how to use Mapio Cymru as a base map on their websites, apps, and other systems. This is a good way of providing visitors to your website with a map of Wales in the Welsh language.<\/p>\n<p>In other words you can show our map tiles, which are the PNG images available through openstreetmap.cymru.<\/p>\n<p>Then you can do whatever your system allows such as panning, zooming, and perhaps putting pins, shapes, images and other things on the map.<\/p>\n<h2>Embed<\/h2>\n<p>Before we press ahead, everything that follows is aimed at somebody who is comfortable coding, maintaining a system, or using GIS software.<\/p>\n<p>If you DON&#8217;T want to work directly with the base map it&#8217;s possible to embed Mapio Cymru on a website. This is probably the fastest and simplest method. It&#8217;s very similar to how you would embed video players etc (using an iframe).<\/p>\n<p>Go to <a href=\"https:\/\/openstreetmap.cymru\">openstreetmap.cymru<\/a> and click Rhannu\/Share for details on how to do this. You can get an HTML embed code or alternatively a direct link to a specific view of the map.<\/p>\n<h2>Which systems?<\/h2>\n<p>The rest of this blog post will describe how to use Mapio Cymru as a base map, for people who want to be a bit more technical.<\/p>\n<p>There are quite a few systems that offer to set a base map of your choice, such as things that run Leaflet.js, e.g. <a href=\"https:\/\/overpass-turbo.eu\/\">Overpass Turbo<\/a>.<\/p>\n<p>For example there are a few WordPress plugins that allow you to show maps on your website &#8211; such as Leaflet Maps Marker, WP Go Maps, and others.<\/p>\n<p>If you have the skills you could create a website from scratch with Leaflet.js and use Mapio Cymru as a base map. Unfortunately the details on how to do this go beyond this little guide today, but there are <a href=\"https:\/\/leafletjs.com\/examples.html\">guides on the web<\/a>!<\/p>\n<p>There is also desktop software that uses base maps of your choice such as QGIS.<\/p>\n<p>For those interested Mapio Cymru&#8217;s CORS headers now allow direct use of tiles. Please note that some content management systems may show a security warning about cross-site scripting.<\/p>\n<h2>The all-important settings<\/h2>\n<p>Use the address below as the base map:<\/p>\n<blockquote><p>https:\/\/openstreetmap.cymru\/osm_tiles\/{z}\/{x}\/{y}.png<\/p><\/blockquote>\n<p>Also if you have to give levels of zoom, put 3 as the minimum and 16 as the maximum.<\/p>\n<p>Here is an attribution or credit you should give, to fulfil the open licensing conditions of OpenStreetMap data. Here&#8217;s the HTML version:<\/p>\n<blockquote><p>Defnyddiwch &lt;a href=&#8221;https:\/\/www.openstreetmap.cymru&#8221; target=&#8221;_blank&#8221;&gt;openstreetmap.cymru&lt;\/a&gt;. Data ar y map &amp;#x24BD Cyfranwyr &lt;a href=&#8221;https:\/\/openstreetmap.org&#8221; target=&#8221;_blank&#8221;&gt;osm.org&lt;\/a&gt;<\/p><\/blockquote>\n<p>Alternatively here&#8217;s the plain text version:<\/p>\n<blockquote><p>Defnyddiwch openstreetmap.cymru. Data ar y map \u00a9 Cyfranwyr osm.org<\/p><\/blockquote>\n<h2>Get in touch<\/h2>\n<p>If you have managed to get the map on your website or system, please leave a comment with the method you used &#8211; and a link to the specific page on your website if possible.<\/p>\n<h2>Terms<\/h2>\n<p>Please be respectful and reasonable with your use of the Mapio Cymru server. Get in touch if you want to discuss &#8216;heavy&#8217; use, especially if you are an organisation, service, or project of significant size.<\/p>\n<p>We&#8217;ll have to review how things go if demand grows.<\/p>","protected":false},"excerpt":{"rendered":"<p>A couple of people have asked me how to use Mapio Cymru as a base map on their websites, apps, and other systems. This is a good way of providing visitors to your website with a map of Wales in the Welsh language. In other words you can show our map tiles, which are the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":292,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[66,62,37,64,63,65],"class_list":["post-286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-canllawiau","tag-leaflet-js","tag-map-sylfaen","tag-openstreetmap","tag-qgis","tag-teiliau","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru\" \/>\n<meta property=\"og:description\" content=\"A couple of people have asked me how to use Mapio Cymru as a base map on their websites, apps, and other systems. This is a good way of providing visitors to your website with a map of Wales in the Welsh language. In other words you can show our map tiles, which are the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/\" \/>\n<meta property=\"og:site_name\" content=\"Mapio Cymru\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-23T10:37:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-24T14:30:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"921\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Carl Morris\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carl Morris\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/\"},\"author\":{\"name\":\"Carl Morris\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\"},\"headline\":\"How to use Mapio Cymru as a Welsh-language base map on your system\",\"datePublished\":\"2023-10-23T10:37:25+00:00\",\"dateModified\":\"2023-10-24T14:30:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/\"},\"wordCount\":1172,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/mapio-cymru-map-sylfaen.jpeg\",\"keywords\":[\"leaflet.js\",\"base map\",\"OpenStreetMap\",\"QGIS\",\"tiles\",\"WordPress\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/\",\"name\":\"How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/2023\\\/10\\\/map-sylfaen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/mapio-cymru-map-sylfaen.jpeg\",\"datePublished\":\"2023-10-23T10:37:25+00:00\",\"dateModified\":\"2023-10-24T14:30:09+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/mapio-cymru-map-sylfaen.jpeg\",\"contentUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/mapio-cymru-map-sylfaen.jpeg\",\"width\":2048,\"height\":921},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2023\\\/10\\\/map-sylfaen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sut i ddefnyddio Mapio Cymru fel map sylfaen Cymraeg ar eich system\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/\",\"name\":\"Mapio Cymru\",\"description\":\"We are mapping Wales in the Welsh language\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\",\"name\":\"Carl Morris\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"caption\":\"Carl Morris\"},\"sameAs\":[\"https:\\\/\\\/morris.cymru\"],\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/author\\\/carlmorris\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/","og_locale":"en_US","og_type":"article","og_title":"How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru","og_description":"A couple of people have asked me how to use Mapio Cymru as a base map on their websites, apps, and other systems. This is a good way of providing visitors to your website with a map of Wales in the Welsh language. In other words you can show our map tiles, which are the [&hellip;]","og_url":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/","og_site_name":"Mapio Cymru","article_published_time":"2023-10-23T10:37:25+00:00","article_modified_time":"2023-10-24T14:30:09+00:00","og_image":[{"width":2048,"height":921,"url":"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg","type":"image\/jpeg"}],"author":"Carl Morris","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Carl Morris","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/#article","isPartOf":{"@id":"https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/"},"author":{"name":"Carl Morris","@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8"},"headline":"How to use Mapio Cymru as a Welsh-language base map on your system","datePublished":"2023-10-23T10:37:25+00:00","dateModified":"2023-10-24T14:30:09+00:00","mainEntityOfPage":{"@id":"https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/"},"wordCount":1172,"commentCount":0,"image":{"@id":"https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/#primaryimage"},"thumbnailUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg","keywords":["leaflet.js","base map","OpenStreetMap","QGIS","tiles","WordPress"],"articleSection":["Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/","url":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/","name":"How to use Mapio Cymru as a Welsh-language base map on your system - Mapio Cymru","isPartOf":{"@id":"https:\/\/mapio.cymru\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/#primaryimage"},"image":{"@id":"https:\/\/mapio.cymru\/2023\/10\/map-sylfaen\/#primaryimage"},"thumbnailUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg","datePublished":"2023-10-23T10:37:25+00:00","dateModified":"2023-10-24T14:30:09+00:00","author":{"@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8"},"breadcrumb":{"@id":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/#primaryimage","url":"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg","contentUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2023\/10\/mapio-cymru-map-sylfaen.jpeg","width":2048,"height":921},{"@type":"BreadcrumbList","@id":"https:\/\/mapio.cymru\/en\/2023\/10\/map-sylfaen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mapio.cymru\/en\/"},{"@type":"ListItem","position":2,"name":"Sut i ddefnyddio Mapio Cymru fel map sylfaen Cymraeg ar eich system"}]},{"@type":"WebSite","@id":"https:\/\/mapio.cymru\/en\/#website","url":"https:\/\/mapio.cymru\/en\/","name":"Mapio Cymru","description":"We are mapping Wales in the Welsh language","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mapio.cymru\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8","name":"Carl Morris","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","caption":"Carl Morris"},"sameAs":["https:\/\/morris.cymru"],"url":"https:\/\/mapio.cymru\/en\/author\/carlmorris\/"}]}},"_links":{"self":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":14,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/286\/revisions\/301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/media\/292"}],"wp:attachment":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}