{"id":1590,"date":"2016-04-04T15:16:52","date_gmt":"2016-04-04T15:16:52","guid":{"rendered":"http:\/\/192.168.1.41\/qtmaps\/?page_id=1590"},"modified":"2016-04-04T16:56:06","modified_gmt":"2016-04-04T16:56:06","slug":"how-to-display-a-map","status":"publish","type":"page","link":"http:\/\/qantumthemes.com\/demo\/qtplaces\/how-to-display-a-map\/","title":{"rendered":"How to display a map"},"content":{"rendered":"<p>To simply display a map with default parameters, including all the Places of your archive, simply add the shortcode<\/p>\n<h3>[qtplaces]<\/h3>\n<h1>Custom maps<\/h1>\n<p>To display a <strong>custom<\/strong> map, edit a page or post, and click the QT Places button in the editor:<\/p>\n<h2 style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1374\" src=\"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-content\/uploads\/2016\/03\/editor.jpg\" alt=\"editor\" width=\"1211\" height=\"339\" \/><\/h2>\n<p style=\"text-align: justify;\">In this way, a complete shortcode will be added to the page.\u00a0You can always find the full\u00a0list of parameters in the QT Places settings page.<\/p>\n<h1>Complete Shortcode<\/h1>\n<p>[qtplaces mapid=\"\" template=\"1\" open=\"1\" limit=\"\" mapheight=\"500\" mapheightmobile=\"\" autozoom=\"1\" streetview=\"1\" getdirections=\"Open in Google Maps\" mapcolor=\"normal\" listimages=\"1\" showfilters=\"1\" posttype=\"place\" taxonomy=\"pcategory\" terms=\"\" debug=\"0\" mousewheel=\"0\" buttoncolor=\"\" buttonbackground=\"\" listbackground=\"\" markercolor=\"\"]<\/p>\n<h1>Shortcode attributes<\/h1>\n<table class=\"qtsparameters\">\n<tbody>\n<tr>\n<th>\n<h4><strong>Shortcode attribute<\/strong><\/h4>\n<\/th>\n<th>\n<h4><strong>Type<\/strong><\/h4>\n<\/th>\n<th>\n<h4><strong>Default<\/strong><\/h4>\n<\/th>\n<th>\n<h4><strong>Usage<\/strong><\/h4>\n<\/th>\n<\/tr>\n<tr>\n<td>autozoom<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>Set to 1 to zoom a location when clicking a marker<\/td>\n<\/tr>\n<tr>\n<td>background<\/td>\n<td>boolean<\/td>\n<td>1<\/td>\n<td>Show background images in the list<\/td>\n<\/tr>\n<tr>\n<td>buttoncolor<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>Text Hex color for the buttons, like #FFFFFF<\/td>\n<\/tr>\n<tr>\n<td>buttonbackground<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>Background color for the buttons, like #FF0000<\/td>\n<\/tr>\n<tr>\n<td>debug<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>In case of issues, set to 1 or true to display the query<\/td>\n<\/tr>\n<tr>\n<td>getdirections<\/td>\n<td>string<\/td>\n<td>Get directions<\/td>\n<td>String used for the link to get the directions. In mobile opens the navigation. Leave empty to hide the link<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>integer<\/td>\n<td>-1<\/td>\n<td>Max number of results. -1: show all the listings<\/td>\n<\/tr>\n<tr>\n<td>listimages<\/td>\n<td>boolean<\/td>\n<td>1<\/td>\n<td>Show background images in the list<\/td>\n<\/tr>\n<tr>\n<td>listbackground<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>Backgorund color for the list items, like #FF0000<\/td>\n<\/tr>\n<tr>\n<td>mapcolor<\/td>\n<td>dark|light|normal<\/td>\n<td>dark<\/td>\n<td>Map color<\/td>\n<\/tr>\n<tr>\n<td>mapheight<\/td>\n<td>integer<\/td>\n<td>500<\/td>\n<td>Map height (desktop)<\/td>\n<\/tr>\n<tr>\n<td>mapheightmobile<\/td>\n<td>integer<\/td>\n<td>400<\/td>\n<td>Map height (mobile)<\/td>\n<\/tr>\n<tr>\n<td>mapid<\/td>\n<td>string<\/td>\n<td>(random if empty)<\/td>\n<td>ID of the map. Use only letters. if empty, a random string is used.<\/td>\n<\/tr>\n<tr>\n<td>mousewheel<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>Set to 1 to enable mouse wheel zooming<\/td>\n<\/tr>\n<tr>\n<td>markercolor<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>Backgorund color for the map markers, like #FF0000<\/td>\n<\/tr>\n<tr>\n<td>open<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>If using templates 2 or 3, set open to 1 if you want the menu to be open when loading the page<\/td>\n<\/tr>\n<tr>\n<td>posttype<\/td>\n<td>string<\/td>\n<td>place<\/td>\n<td>Post type used to extract the listing. Must be enabled in the settings.<\/td>\n<\/tr>\n<tr>\n<td>showfilters<\/td>\n<td>boolean<\/td>\n<td>1<\/td>\n<td>Display filters<\/td>\n<\/tr>\n<tr>\n<td>streetview<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>Set to 1 enable the street view function<\/td>\n<\/tr>\n<tr>\n<td>template<\/td>\n<td>integer<\/td>\n<td>1<\/td>\n<td>Set 1, 2 or 3 to change map design.<\/td>\n<\/tr>\n<tr>\n<td>taxonomy<\/td>\n<td>string<\/td>\n<td>pcategory<\/td>\n<td>Taxonomy to use for the filters, to display only items within a certain taxonomy<\/td>\n<\/tr>\n<tr>\n<td>terms<\/td>\n<td>array of integers<\/td>\n<td><\/td>\n<td>Use the ids of the taxonomy to filter the results, like this: 192,32,45<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Support<\/h2>\n<p>For support please visit our helpdesk: <a href=\"http:\/\/qantumthemes.com\/helpdesk\">http:\/\/qantumthemes.com\/helpdesk<\/a><\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>To simply display a map with default parameters, including all the Places of your archive, simply add the shortcode Acropolis of Athens &nbsp; Athens (Greece) Harmandir Sahib &nbsp; (India) St. Basil&#8217;s Cathedral &nbsp; (Russia) Taj Mahal &nbsp; (India) Hassan Tower &nbsp; (Morocco) Park G\u00fcell &nbsp; (Spain) The Little Mermaid &nbsp; (Denmark) Colosseum &nbsp; Roma (Italy) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-boxed.php","meta":{"footnotes":""},"class_list":["post-1590","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/pages\/1590"}],"collection":[{"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/comments?post=1590"}],"version-history":[{"count":7,"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/pages\/1590\/revisions"}],"predecessor-version":[{"id":1656,"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/pages\/1590\/revisions\/1656"}],"wp:attachment":[{"href":"http:\/\/qantumthemes.com\/demo\/qtplaces\/wp-json\/wp\/v2\/media?parent=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}