{"id":1278,"date":"2025-10-30T13:23:08","date_gmt":"2025-10-30T13:23:08","guid":{"rendered":"https:\/\/www.wpgmaps.com\/help\/?post_type=docs&#038;p=1278"},"modified":"2025-10-30T13:23:26","modified_gmt":"2025-10-30T13:23:26","password":"","slug":"map-manipulation","status":"publish","type":"docs","link":"https:\/\/www.wpgmaps.com\/help\/docs\/map-manipulation\/","title":{"rendered":"Map Manipulation"},"content":{"rendered":"\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-7387b849 wp-block-group-is-layout-flex\">\n<ul style=\"border-radius:5px;background-color:#eeeeee\" class=\"wp-block-list has-background\">\n<li><strong>Description:<\/strong> A simple example showing how you can do things like change the center point, zoom and active selected marker with JavaScript. This is more advanced, and open to interpretation with respect to usage.<\/li>\n\n\n\n<li><strong>Complexity:<\/strong> High<\/li>\n\n\n\n<li><strong>Requirements: <\/strong>\n<ul class=\"wp-block-list\">\n<li>Basic: V9+<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Script Types:<\/strong> \n<ul class=\"wp-block-list\">\n<li>JavaScript <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div style=\"height:100px;width:0px\" aria-hidden=\"true\" class=\"wp-block-spacer wp-container-content-6388d5dc\"><\/div>\n<\/div>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">JavaScript<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/DylanCodeCabin\/b14a7d8b8c24078669b2a801514040b3.js\"><\/script>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"border-radius:5px;background-color:#eeeeee\">Installation: <strong>Maps &gt; Settings &gt; Custom Scripts &gt; Within the Custom JavaScript block<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript Installation: Maps &gt; Settings &gt; Custom Scripts &gt; Within the Custom JavaScript block<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[66],"doc_tag":[],"class_list":["post-1278","docs","type-docs","status-publish","hentry","doc_category-maps"],"year_month":"2026-09","word_count":56,"total_views":"6","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"wpgmaps","author_nicename":"wpgmaps","author_url":"https:\/\/www.wpgmaps.com\/help\/author\/wpgmaps\/"},"doc_category_info":[{"term_name":"Maps","term_url":"https:\/\/www.wpgmaps.com\/help\/docs-category\/maps\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/comments?post=1278"}],"version-history":[{"count":1,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1278\/revisions"}],"predecessor-version":[{"id":1279,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1278\/revisions\/1279"}],"wp:attachment":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/media?parent=1278"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/doc_category?post=1278"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}