{"id":25552,"date":"2013-10-24T00:40:32","date_gmt":"2013-10-24T00:40:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/placemarks\/"},"modified":"2019-10-13T17:56:09","modified_gmt":"2019-10-13T17:56:09","slug":"placemarks","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/placemarks\/","author":3181633,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0.1","stable_tag":"trunk","tested":"5.2.24","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Placemarks","header_author":"Gabriel Nagmay","header_description":"","assets_banners_color":"acaaaf","last_updated":"2019-10-13 17:56:09","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.dreamhost.com\/donate.cgi?id=17157","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/placemarks\/","header_author_uri":"https:\/\/gabriel@nagmay.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":3793,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.3":"<ul>\n<li>Bug fix<\/li>\n<\/ul>","1.0.2":"<ul>\n<li>Bug fix<\/li>\n<\/ul>","1.0.1":"<ul>\n<li>Bug fixes. New edit links on map.<\/li>\n<\/ul>","1.0.0":"<p>Seems stable enough, but only has basic features.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1625338","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1625338","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1625337","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1625337","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","2.0.0","3.0.1","3.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":"1625337","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1625337","resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1625337","resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1625337","resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1625337","resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Demo of how the plugin works with custom locations and marker images","2":"How a map might look on a post page","3":"Creating a new 'Placemark'","4":"With the settings you can customize the types of placemarks, locations and icons available.","5":"And then we embed a map!"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2909,2660,2911,33001,17483],"plugin_category":[49],"plugin_contributors":[88651],"plugin_business_model":[],"class_list":["post-25552","plugin","type-plugin","status-publish","hentry","plugin_tags-map","plugin_tags-maps","plugin_tags-placemark","plugin_tags-placemarks","plugin_tags-places","plugin_category-maps-and-location","plugin_contributors-gabrielmcgovern","plugin_committers-gabrielmcgovern"],"banners":{"banner":"https:\/\/ps.w.org\/placemarks\/assets\/banner-772x250.png?rev=1625337","banner_2x":"https:\/\/ps.w.org\/placemarks\/assets\/banner-1544x500.png?rev=1625337","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/placemarks\/assets\/icon-128x128.png?rev=1625338","icon_2x":"https:\/\/ps.w.org\/placemarks\/assets\/icon-256x256.png?rev=1625338","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/placemarks\/assets\/screenshot-1.gif?rev=1625337","caption":"Demo of how the plugin works with custom locations and marker images"},{"src":"https:\/\/ps.w.org\/placemarks\/assets\/screenshot-2.png?rev=1625337","caption":"How a map might look on a post page"},{"src":"https:\/\/ps.w.org\/placemarks\/assets\/screenshot-3.png?rev=1625337","caption":"Creating a new 'Placemark'"},{"src":"https:\/\/ps.w.org\/placemarks\/assets\/screenshot-4.png?rev=1625337","caption":"With the settings you can customize the types of placemarks, locations and icons available."},{"src":"https:\/\/ps.w.org\/placemarks\/assets\/screenshot-5.png?rev=1625337","caption":"And then we embed a map!"}],"raw_content":"<!--section=description-->\n<p>Create maps, drop pins, and so much more!<\/p>\n\n<p>This plugin adds a new <code>placemark<\/code> post type that allows author to create and update map content.<\/p>\n\n<p>The author interface includes:<\/p>\n\n<p><strong>Place<\/strong><\/p>\n\n<ul>\n<li>An interactive map to drop and move pins<\/li>\n<li>A way to edit GPS by hand and make use of the geolocation on your mobile phone<\/li>\n<li>An editable set of drop-down lists for picking locations<\/li>\n<li>An alternative text area to describe the location<\/li>\n<\/ul>\n\n<p><strong>Mark<\/strong><\/p>\n\n<ul>\n<li>An editable drop-down of marker types and associated icons<\/li>\n<li>An optional title<\/li>\n<li>Optional bubble text<\/li>\n<li>Optional link<\/li>\n<\/ul>\n\n<p>** Optional ** \nThe locations and marker types can be set by an administrator. This allow the you to:<\/p>\n\n<ul>\n<li>Customize the types of markers includeing the image<\/li>\n<li>Set a custom taxonomy for locations, allowing authors to zoom in to campus, building, floor, etc...<\/li>\n<li>Add image overlays to each location, including floorplans. <\/li>\n<\/ul>\n\n<p>To embed the maps a simple short code is used. You can limit which type of placemarks will show up on each map.<\/p>\n\n<p>A basic API allows you to pull out the data for other mapping systems.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>placemarks<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create some new placemarks<\/li>\n<li>Include the shortcode [placemarks] on any page or post<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What can the shortcode do?<\/dt>\n<dd><p>[placemarks types=\"list of type names\" ids=\"list of placemarker ids\" lat=# lng =# zoom=# width=\"\" height=\"\" alt=true\/false]<\/p>\n\n<p>Everything after <code>placemark<\/code> is optional:<\/p>\n\n<ul>\n<li><code>types<\/code>: String. List of types slugs to include on the map \"type, foo bar\" (shows all by default)<\/li>\n<li><code>locations<\/code>: String. List of location slugs to include on the map \"location-1,location-2\". can be used with types to further limit. <\/li>\n<li><code>ids<\/code>: String. List of placemarker ids - handy if you only want 1, or 2. Can be used with types and locatiosn to help limit. <\/li>\n<li><code>lat<\/code>: Number. Use lat+lng+zoom to choose an initial map view (defaults to show all pins)<\/li>\n<li><code>lng<\/code>: Number. Use lat+lng+zoom to choose an initial map view (defaults to show all pins)<\/li>\n<li><code>zoom<\/code>: Number. Use lat+lng+zoom to choose an initial map view (defaults to show all pins)<\/li>\n<li><code>width<\/code>: String. Change the width of the map (default '100%') <\/li>\n<li><code>height<\/code>: String. Change the height of the map (default '400px')<\/li>\n<li><code>alt<\/code>: True\/False. A text list of all the markers shows under th map by default. This can be used to turn it off.<\/li>\n<\/ul><\/dd>\n<dt>How do I edit the locations and types drop-downs?<\/dt>\n<dd><p>Go to <code>Settings<\/code> -&gt; <code>Placemarks<\/code>. Here you can use JSON to create custom lists. For example:<\/p>\n\n<p><strong>Marker Types (JSON)<\/strong>: <code>name<\/code> and <code>src<\/code> are required<\/p>\n\n<pre><code>{ \"types\": [\n    {\"name\":\"Default\", \"src\":\"http:\/\/www.yoursite.com\/default.png\"},\n    {\"name\":\"Hot\", \"src\":\"http:\/\/www.yoursite.com\/hot.png\"}\n    ]\n}\n<\/code><\/pre>\n\n<p><strong>Locations (JSON)<\/strong>: <code>name<\/code> and <code>slug<\/code> are required. slug should always be unique<\/p>\n\n<pre><code>{\"locations\": [\n    {\"name\":\"Oregon\",\"slug\":\"or\"},\n    {\"name\":\"Washington\",\"slug\":\"wa\"}\n    ]\n}\n<\/code><\/pre>\n\n<p>Optionally, you can also include: <code>lat<\/code>, <code>lng<\/code>, <code>zoom<\/code>. Together, these control the map when selected in the admin interface.<\/p>\n\n<pre><code>{\"locations\": [\n    {\"name\":\"Oregon\",\"slug\":\"or\",\"lat\":45.563282,\"lng\":-122.673457,\"zoom\":17},\n    {\"name\":\"Washington\",\"slug\":\"wa\",\"lat\":45.563838,\"lng\":-122.672342,\"zoom\":19}\n    ]\n}\n<\/code><\/pre>\n\n<p>Each location can also include <code>locations<\/code>. This can be used to create hierarchies of select lists!<\/p>\n\n<pre><code>{\"locations\": [\n    {\"name\":\"Oregon\",\"slug\":\"or\", \"locations\":[\n        {\"name\":\"Portland\",\"slug\":\"pdx\"},\n        {\"name\":\"Bend\",\"slug\":\"bend\"}\n        ]\n    },\n    {\"name\":\"Washington\",\"slug\":\"wa\", \"locations\":[\n        {\"name\":\"Seattle\",\"slug\":\"sea\"}\n        ]\n    }\n    ]\n}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.02<\/h4>\n\n<ul>\n<li>Disabled error reporting display<\/li>\n<li>Updated calls to API using rest_url() - to work with non-standard WordPress installs<\/li>\n<\/ul>\n\n<h4>3.01<\/h4>\n\n<ul>\n<li>Multiple maps on a single page without conflict<\/li>\n<\/ul>\n\n<h4>3.00<\/h4>\n\n<ul>\n<li>Reformat code using the WP Boilerplate format<\/li>\n<li>Switched from Google Maps to OpenStreetMaps<\/li>\n<li>New network settings available in multisite<\/li>\n<li>Uses the WordPress REST API (discontinue old api)<\/li>\n<li>Fixed xss vulnerability in old api (by removing it :)<\/li>\n<li>Admin data pulled direclty from api<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Remove\/hide preview button<\/li>\n<li>Remove \"view\" message on update<\/li>\n<li>Shortcode: allow \"ids\" to only show 1 or 2<\/li>\n<li>Update icon on map from default<\/li>\n<li>Add slug to location<\/li>\n<li>Rename script\/style files to make sence<\/li>\n<li>Create data export page<\/li>\n<li>Limit by location slug in shortcode<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>Basic functions in place<\/li>\n<li>All placemarks: Show location names instead of slugs <\/li>\n<li>Embedded map: Add \"edit\" link to markers displayed on map when user is logged in for quick editing!<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Bugfix: Only enqueue js on placemark admin pages<\/li>\n<li>Settings: Allow locations in locations (via JSON)<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Bug fix: 2.0.0 was missing function files<\/li>\n<li>Shortcode: set defaults for gps and zoom<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Feature: Setting can now be changed at the network level<\/li>\n<li>Feature: Basic API for pulling data: \/placemarks-data\/<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Bug fix: Lots of bug fixes<\/li>\n<li>Update: Marker types should now include slug. Allows you to change the name without breaking everything. Will work fine without slug for now. <\/li>\n<li>Update: All placemarks list view updated. <\/li>\n<li>Feature: Icon on map updates as you change type. <\/li>\n<li>Feature: Allow for overlay images in Locations JSON!<\/li>\n<li>Feature: Data page \/placemarks-data\/ to act as api for external maps<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Bug fix: Only set up map if map_canvas is found on page<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Bug fix: Fixed comment error on pages with shortcode<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Bug fix: Only enqueue js on placemark admin pages<\/li>\n<li>Bug fix: Fix error on pages with comments<\/li>\n<li>Feature: Add edit link to each placemark on map<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First version to be released.<\/li>\n<\/ul>","raw_excerpt":"Allow authors to easily manage placemarks and embed custom maps.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25552"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gabrielmcgovern"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25552"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25552"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25552"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25552"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25552"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}