{"id":22888,"date":"2013-04-10T22:10:41","date_gmt":"2013-04-10T22:10:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/advanced-custom-fields-leaflet-field\/"},"modified":"2014-11-04T16:39:48","modified_gmt":"2014-11-04T16:39:48","slug":"advanced-custom-fields-leaflet-field","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/advanced-custom-fields-leaflet-field\/","author":9587545,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"trunk","tested":"4.0.38","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: Leaflet Field","header_author":"Jens Nilsson","header_description":"","assets_banners_color":"dfd8ce","last_updated":"2014-11-04 16:39:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/jensjns\/acf-leaflet-field","header_author_uri":"http:\/\/jensnilsson.nu\/","rating":3.1,"author_block_rating":0,"active_installs":80,"downloads":7760,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.2.1":"<ul>\n<li>Fixed a bug where polylines, polygons and rectangles wouldn&#039;t be rendered to the map when no markers were present on the map.<\/li>\n<\/ul>","1.2.0":"<ul>\n<li>More polished UI.<\/li>\n<li>Added support for drawing polylines, polygons and rectangles.<\/li>\n<li>Added OpenStreetMap Black and White as Map Provider option.<\/li>\n<li>Fixed a bug where a popup couldn&#039;t be opened after it had been opened once.<\/li>\n<\/ul>","1.1.2":"<ul>\n<li>4.3.9 Compatibility patch<\/li>\n<\/ul>","1.1.1":"<ul>\n<li>This update adds support for ACF 5 PRO (it still supports both 3.x and 4.x)<\/li>\n<\/ul>","1.1.0":"<ul>\n<li>New tile-provider: OpenStreetMap, which is now the default tile-provider since it doesn&#039;t require an api-key.<\/li>\n<li>Changed the data-structure to geoJson. IMPORTANT: Breaking change. Sorry.<\/li>\n<\/ul>","1.0.0":"<ul>\n<li>New tool: Locate tool.<\/li>\n<li>The field now works with the repeater-field.<\/li>\n<\/ul>","0.2.0":"<ul>\n<li>New feature: Added support for binding popups to markers.<\/li>\n<\/ul>","0.1.0":"<ul>\n<li>Release<\/li>\n<\/ul>"},"ratings":{"1":"3","2":0,"3":0,"4":"1","5":"3"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"697376","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.2.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1009987","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1009987","resolution":"2","location":"assets"}},"screenshots":{"1":"Leaflet field with markers, a popup, a polyline and a polygon.","2":"Settings for the Leaflet field."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2292,83,2217,2010],"plugin_category":[49,59],"plugin_contributors":[87244],"plugin_business_model":[],"class_list":["post-22888","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-acf4","plugin_tags-admin","plugin_tags-advanced-custom-fields","plugin_tags-custom-fields","plugin_category-maps-and-location","plugin_category-utilities-and-tools","plugin_contributors-jensnilsson","plugin_committers-jensnilsson"],"banners":{"banner":"https:\/\/ps.w.org\/advanced-custom-fields-leaflet-field\/assets\/banner-772x250.png?rev=697376","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/advanced-custom-fields-leaflet-field_dfd8ce.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-custom-fields-leaflet-field\/assets\/screenshot-1.png?rev=1009987","caption":"Leaflet field with markers, a popup, a polyline and a polygon."},{"src":"https:\/\/ps.w.org\/advanced-custom-fields-leaflet-field\/assets\/screenshot-2.png?rev=1009987","caption":"Settings for the Leaflet field."}],"raw_content":"<!--section=description-->\n<p>This plugin adds a <a href=\"http:\/\/leafletjs.com\">Leaflet<\/a> map field to the <a href=\"http:\/\/www.advancedcustomfields.com\/\">Advanced Custom Fields<\/a> plugin. Use it to display maps with markers, lines and shapes along with your posts and pages.<\/p>\n\n<ul>\n<li>Add multiple markers with popups to the map.<\/li>\n<li>Draw polylines, polygons and rectangles.<\/li>\n<li>The field stores both your zoom-level and viewport location.<\/li>\n<li>Function to render the map in your theme is included in the plugin: <code>&lt;?php the_leaflet_field( 'my_leaflet_field' ); ?&gt;<\/code>, just plug and play!<\/li>\n<li>Supports ACF4 and ACF5 (Pro)<\/li>\n<\/ul>\n\n<h3>Instructions<\/h3>\n\n<p>A rendering function is provided in the plugin. If you want to use it all you have to do is use <code>the_leaflet_field( 'my_leaflet_field' );<\/code> where you want to render the map.<\/p>\n\n<h3>To do<\/h3>\n\n<p>Things I plan to add to the plugin:<\/p>\n\n<ol>\n<li>Adding images to popups.<\/li>\n<li>Provide a tool for importing GeoJSON-structured data into the field.<\/li>\n<\/ol>\n\n<h3>GitHub<\/h3>\n\n<p>If you want the latest development version of this plugin it is available over at my <a href=\"https:\/\/github.com\/jensjns\/acf-leaflet-field\/\">github repository<\/a>. The github repository will always have the latest code and may occasionally be broken and not work at all.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>advanced-custom-fields-leaflet-field<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Make sure you have <a href=\"http:\/\/www.advancedcustomfields.com\/\">Advanced Custom Fields<\/a> installed and activated<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add a Leaflet field to a ACF field group and save<\/li>\n<li>The field is now ready for use<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I activated the plugin but nothing cool happened ;(<\/dt>\n<dd><p>This is not a standalone plugin, you need to have <a href=\"http:\/\/www.advancedcustomfields.com\/\">Advanced Custom Fields<\/a> installed and activated for it to work.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixed a bug where polylines, polygons and rectangles wouldn't be rendered to the map when no markers were present on the map.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>More polished UI.<\/li>\n<li>Added support for drawing polylines, polygons and rectangles.<\/li>\n<li>Added OpenStreetMap Black and White as Map Provider option.<\/li>\n<li>Fixed a bug where a popup couldn't be opened after it had been opened once.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>4.3.9 Compatibility patch<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Added support for ACF 5 (PRO)<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added support for OpenStreetMap as tile-provider. This will be the new default tile-provider.<\/li>\n<li>Switched to geoJson for data-structure.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Migrated the plugin into field-template for v3 &amp; v4 support.<\/li>\n<li>New tool: Locate tool.<\/li>\n<li>Fixed repeater-support.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Added support for binding popups to markers.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>","raw_excerpt":"Addon for Advanced Custom Fields that adds a Leaflet field to the available field types.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22888"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jensnilsson"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22888"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22888"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22888"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22888"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22888"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}