{"id":1620841,"date":"2020-05-13T14:21:18","date_gmt":"2020-05-13T14:21:18","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1620841"},"modified":"2025-04-02T09:49:24","modified_gmt":"2025-04-02T09:49:24","slug":"displaying-a-simple-map","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/displaying-a-simple-map\/","title":{"rendered":"Displaying a Simple Map"},"content":{"rendered":"\n<p class=\"lead\">Toolset lets you add maps with markers to any page. You can style the map and choose where to place markers. In this lesson we teach how to create a &#8220;static map&#8221; with one marker. Typically, you&#8217;ll include such maps on your &#8220;about us&#8221; or &#8220;contact us&#8221; pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Follow these steps<\/h2>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"3e1d2592ce20bdf2bf813c9dfa44c991\"><p><span><span style=\"font-weight: 400;\">To use the <\/span><b>Map <\/b><span style=\"font-weight: 400;\">block, you first need to choose your map provider. You can start using it with <\/span><b>OpenStreetMap<\/b><span style=\"font-weight: 400;\"> right away, but if you choose <\/span><b>Google Maps<\/b><span style=\"font-weight: 400;\"> or <\/span><b>Azure Maps<\/b><span style=\"font-weight: 400;\">,\u00a0 you\u2019ll need<\/span> to <a href=\"https:\/\/toolset.com\/de\/course-lesson\/creating-a-maps-api-key\/\"><\/a>register the API key first<\/span><span>.<\/span><\/p><\/div>\n\n\n\n<p>The&nbsp;<strong>Map<\/strong>&nbsp;block provides you with many options and ways to customize your maps. Use the options in the right sidebar to adjust all of the settings when you insert or edit a&nbsp;<strong>Map<\/strong>&nbsp;block.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"999c33dd06aaea833827fcbf113de571\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-setting-map-options.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-setting-map-options-500x340.png\" alt=\"Setting up map options\" class=\"wp-image-1636939\"\/><\/a><figcaption><div class=\"tb-image-caption\">Setting up map options<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-map-markers\">Add a map marker<\/h3>\n\n\n\n<p>After inserting a&nbsp;<strong>Map<\/strong>&nbsp;block, you need to add markers to it by clicking the&nbsp;<strong>Add marker<\/strong>&nbsp;button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"a8029346983849454e1f13912018c780\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-add-the-marker.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-add-the-marker-500x272.png\" alt=\"Adding the marker to the map\" class=\"wp-image-1636951\"\/><\/a><figcaption><div class=\"tb-image-caption\">Adding the marker to the map<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Now you can add the address to your marker. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"2faae94b47cf627917f0b65014a62c0c\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-add-the-marker-address.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-add-the-marker-address-500x294.png\" alt=\"Add the address to the marker\" class=\"wp-image-1636987\"\/><\/a><figcaption><div class=\"tb-image-caption\">Adding the address to the marker<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<p>You can set different options for each marker. This includes changing the marker icon, adding content displayed when hovering or clicking a marker, and more.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"b2dbf86067197720ff93b91667ed1155\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-marker-settings-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/maps-marker-settings-1-500x290.png\" alt=\"Marker settings\" class=\"wp-image-1637111\"\/><\/a><figcaption><div class=\"tb-image-caption\">Marker settings<\/div><\/figcaption><\/figure>\n<\/div>","protected":false},"author":4341,"featured_media":1645817,"template":"","related-lesson":[8423],"class_list":["post-1620841","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-maps"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620841\/revisions"}],"predecessor-version":[{"id":2803813,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620841\/revisions\/2803813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1645817"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1620841"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1620841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}