{"id":702,"date":"2019-04-02T11:27:57","date_gmt":"2019-04-02T11:27:57","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/marker-cluster\/"},"modified":"2019-09-25T15:54:45","modified_gmt":"2019-09-25T15:54:45","slug":"marker-cluster","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/marker-cluster\/","title":{"rendered":"Marker Cluster"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#config\">Configuration<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\" name=\"intro\">Introduction<\/a><\/h3>\n<p>The marker cluster addon improves map and site performance by clustering markers from nearby locations. The single &#8216;marker cluster&#8217; represents several locations at once, and clicking the cluster zooms in and expands the individual markers.<br \/>\n<img class=\"alignnone size-full wp-image-17629\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2015\/07\/cluster.png\" alt=\"\" width=\"970\" height=\"435\" \/><\/p>\n<h3><a href=\"#install\" name=\"install\">Installation<\/a><\/h3>\n<h4><a href=\"#prep\" name=\"prep\">Preparation<\/a><\/h4>\n<p>Check to be sure you have the following plugins installed before you get started.<\/p>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/status\/\" target=\"_blank\" rel=\"noopener noreferrer\">GeoDirectory V2<\/a><\/li>\n<\/ul>\n<h4><a href=\"#install\" name=\"install\">Installation<\/a><\/h4>\n<ol>\n<li><a href=\"https:\/\/wpgeodirectory.com\/your-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">Download the Addon from your account<\/a>.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/installing-addons\/\" target=\"_blank\" rel=\"noopener noreferrer\">Install the Addon<\/a>.<\/li>\n<\/ol>\n<h3><a href=\"#config\" name=\"config\">Configuration<\/a><\/h3>\n<p>Navigate to <em><strong>Geodirectory<\/strong><\/em> &gt; <em><strong>Settings<\/strong><\/em> &gt; <em><strong>Marker Cluster<\/strong><\/em><\/p>\n<p><img class=\"alignnone size-full wp-image-705\" src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/04\/cluster1.png\" alt=\"\" width=\"591\" height=\"306\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/04\/cluster1.png 591w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2019\/04\/cluster1-300x155.png 300w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/p>\n<p><strong>Marker Cluster Settings<\/strong><\/p>\n<ol>\n<li>Cluster Type\n<ol>\n<li>Server side rendering can be used to improve performance of GD Home Maps created with widgets and shortcodes.<\/li>\n<\/ol>\n<\/li>\n<li>Grid Size\n<ol>\n<li>The grid size of a cluster in pixel.<\/li>\n<li>Each cluster will be a square.<\/li>\n<li>If you want the algorithm to run faster, you can set this value larger.<\/li>\n<li>The default value is 60<\/li>\n<\/ol>\n<\/li>\n<li>Max Zoom\n<ol>\n<li>The max zoom level monitored by a marker cluster.<\/li>\n<li>When maxZoom is reached or exceeded all markers will be shown without cluster.<\/li>\n<li>The default value is 15<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><strong>Map widgets, shortcodes and blocks<\/strong><\/p>\n<ol>\n<li>Map widgets\u00a0shortcodes and blocks will have an extra option to cluster the map.<\/li>\n<li>The shortcode parameter for GD Map is\n<pre><code>marker_cluster=\"1\"<\/code><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"featured_media":0,"parent":167,"menu_order":14,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/702"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/702\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/167"}],"next":[{"title":"Multiratings","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/multiratings\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/234"}],"prev":[{"title":"Map Styles","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/map-styles\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/291"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}