{"id":87304,"date":"2018-07-04T20:39:04","date_gmt":"2018-07-04T20:39:04","guid":{"rendered":"https:\/\/fr.wordpress.org\/plugins\/advanced-custom-fields-leaflet-map-field\/"},"modified":"2018-07-04T20:43:34","modified_gmt":"2018-07-04T20:43:34","slug":"acf-leaflet-map-field","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/acf-leaflet-map-field\/","author":16169791,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"4.5.33","requires":"4.9.6","requires_php":"5.6","requires_plugins":"","header_name":"Advanced Custom Fields: Leaflet Map Field","header_author":"Unscuzzy","header_description":"This plugin adds a Leaflet map field to the Advanced Custom Fields plugin.","assets_banners_color":"7dbca2","last_updated":"2018-07-04 20:43:34","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/unscuzzy.com","header_plugin_uri":"https:\/\/github.com\/Unscuzzy\/acf-leaflet-field","header_author_uri":"https:\/\/unscuzzy.com","rating":3.5,"author_block_rating":0,"active_installs":400,"downloads":5247,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":"1","3":0,"4":0,"5":"1"},"assets_icons":{"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1904210","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1904210","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1904210","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1904210","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1904210","resolution":"3","location":"assets"}},"screenshots":{"1":"Backend field settings","2":"Backend field example","3":"Front-end output"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,4595],"plugin_category":[59],"plugin_contributors":[158834],"plugin_business_model":[],"class_list":["post-87304","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-leaflet","plugin_category-utilities-and-tools","plugin_contributors-unscuzzy","plugin_committers-unscuzzy"],"banners":{"banner":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/banner-772x250.jpg?rev=1904210","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/icon-256x256.jpg?rev=1904210","icon_2x":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/icon-256x256.jpg?rev=1904210","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/screenshot-1.png?rev=1904210","caption":"Backend field settings"},{"src":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/screenshot-2.png?rev=1904210","caption":"Backend field example"},{"src":"https:\/\/ps.w.org\/acf-leaflet-map-field\/assets\/screenshot-3.png?rev=1904210","caption":"Front-end output"}],"raw_content":"<!--section=description-->\n<p>This plugin adds a Leaflet map field to the Advanced Custom Fields plugin.<\/p>\n\n<h4>Create the backend field<\/h4>\n\n<p>You can add a leaflet map field using ACF like the Google Map field.<\/p>\n\n<h4>Diplay the map in front-end<\/h4>\n\n<p>Uses the classic ACF <code>get_field('field_name')<\/code> function to get field data (lat, lng, address &amp; zoom).<\/p>\n\n<p>Warning, the <code>get_field()<\/code> function does not display the map itself, for this, use the <a href=\"https:\/\/leafletjs.com\/examples\/quick-start\/\">leaflet js map<\/a> documentation directly<\/p>\n\n<h4>Compatibility<\/h4>\n\n<p>This ACF field type is compatible with:\n* ACF 5 only (Pro &amp; Free)<\/p>\n\n<p>NB: If you're using the ACF 4 Free version, you can upgrade to version 5 step by step <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/upgrade-guide-version-5\/\">on this page<\/a><\/p>\n\n<!--section=installation-->\n<p>From your WordPress dashboard\n1. Visit Plugins &gt; Add New\n2. Search for \u201cAdvanced Custom Fields: Leaflet Field\u201d\n3. Activate \"Advanced Custom Fields: Leaflet Field\" from your Plugins page\n4. Create ACF new leaflet map field from \"Custom Fields\" menu item<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>From your WordPress dashboard\n1. Visit Plugins &gt; Add New\n2. Search for \u201cAdvanced Custom Fields: Leaflet Field\u201d\n3. Activate \"Advanced Custom Fields: Leaflet Field\" from your Plugins page\n4. Create ACF new leaflet map field from \"Custom Fields\" menu item<\/p><\/dd>\n<dt>How to display the map in front-end ?<\/dt>\n<dd><ol>\n<li>Make sure you have created a \"Leaflet Map\" field<\/li>\n<li>In the template file, use the ACF classic \"get_field()\" function, (you can add this following code in your template page for debug)\n\n<ul>\n<li><code>&lt;?php var_dump( get_field('my-field-name') ); ?&gt;<\/code><\/li>\n<\/ul><\/li>\n<li>Go to <a href=\"https:\/\/leafletjs.com\/examples\/quick-start\/\">leaflet map documentation<\/a> and draw your 1st map!<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Adds a Leaflet map field to the Advanced Custom Fields plugin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/87304","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=87304"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/unscuzzy"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=87304"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=87304"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=87304"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=87304"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=87304"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=87304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}