{"id":19616,"date":"2012-08-23T12:58:35","date_gmt":"2012-08-23T12:58:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-fields-map-extension\/"},"modified":"2013-12-18T10:47:04","modified_gmt":"2013-12-18T10:47:04","slug":"simple-fields-map-extension","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/simple-fields-map-extension\/","author":5932697,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.4","stable_tag":"1.3.4","tested":"3.7.41","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Simple Fields Map extension","header_author":"Earth People","header_description":"","assets_banners_color":"d8dde0","last_updated":"2013-12-18 10:47:04","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/earthpeople.se\/","header_plugin_uri":"http:\/\/earthpeople.se\/","header_author_uri":"http:\/\/earthpeople.se\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":5822,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"594467","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.1.0","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2","1.2.1","1.2.2","1.3","1.3.1","1.3.2","1.3.3","1.3.4"],"block_files":[],"assets_screenshots":{"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573788","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573788","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573788","resolution":"2","location":"plugin"}},"screenshots":{"1":"The field with its options","2":"The post edit screen, including the currently selected coordinates and a search result found","3":"Example of the values that are being stored for each saved location\/field (and the function used to get them)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4124,1571,3529,3530,2245],"plugin_category":[49],"plugin_contributors":[79108,78092],"plugin_business_model":[],"class_list":["post-19616","plugin","type-plugin","status-publish","hentry","plugin_tags-geolocation","plugin_tags-google-maps","plugin_tags-latitude","plugin_tags-longitude","plugin_tags-simple-fields","plugin_category-maps-and-location","plugin_contributors-earth-people","plugin_contributors-eskapism","plugin_committers-eskapism"],"banners":{"banner":"https:\/\/ps.w.org\/simple-fields-map-extension\/assets\/banner-772x250.png?rev=594467","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-fields-map-extension_d8dde0.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-fields-map-extension\/trunk\/screenshot-1.png?rev=1573788","caption":"The field with its options"},{"src":"https:\/\/ps.w.org\/simple-fields-map-extension\/trunk\/screenshot-2.png?rev=1573788","caption":"The post edit screen, including the currently selected coordinates and a search result found"},{"src":"https:\/\/ps.w.org\/simple-fields-map-extension\/trunk\/screenshot-3.png?rev=1573788","caption":"Example of the values that are being stored for each saved location\/field (and the function used to get them)"}],"raw_content":"<!--section=description-->\n<p>Adds a new field type to <a href=\"http:\/\/wordpress.org\/extend\/plugins\/simple-fields\/\">Simple Fields<\/a> that let you choose a location.<\/p>\n\n<p>The coordinates (lat\/lng) of that location is saved\nand easily retrieved in for example your theme.<\/p>\n\n<p>Happy geocoding!<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Easily add maps to any post, page or custom post type<\/li>\n<li>Integrates seamlessly into Simple Fields<\/li>\n<li>You can have multiple maps with separately settings<\/li>\n<li>Each map can have it's own:\n\n<ul>\n<li>zoom level<\/li>\n<li>map type (Roadmap, Satellite, Hybrid, Terrain)<\/li>\n<li>default location<\/li>\n<\/ul><\/li>\n<li>Search location of address by using built in search box<\/li>\n<li>Search location by enter its latitude and longitude coordinates<\/li>\n<li>Supports Repeatable Fields - have any amount of maps connected to each post<\/li>\n<li>From each saved position you can get\n\n<ul>\n<li>Latitude and Longitude<\/li>\n<li>Address information, including store\/shop name if that was what the user searched for when adding this location<\/li>\n<li>Preferred zoom level<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>To add a map to a field group programmatically<\/h4>\n\n<p>Slug for this field extension is \"googlemaps\".<\/p>\n\n<p>Full example using register field group:<\/p>\n\n<pre><code>&lt;?php\n\n\/\/ Add a field group with a Google Map-field\nsimple_fields_register_field_group('sf_map_test_field_fg',\n    array(\n        'name' =&gt; 'My map',\n        'slug' =&gt; \"mu_map\"\n        'repeatable' =&gt; 1,\n        'fields' =&gt; array(\n            array(\n                \"type\" =&gt; \"googlemaps\",\n                \"slug\" =&gt; \"sf_map\",\n                \"name\" =&gt; \"Test map\",\n                \"options\" =&gt; array(\n                    \"defaultZoomLevel\" =&gt; 10,\n                    \"defaultMapTypeId\" =&gt; \"HYBRID\", \/\/ ROADMAP | SATELLITE | HYBRID | TERRAIN\n                    \"defaultLocationLat\" =&gt; 40.71435,\n                    \"defaultLocationLng\" =&gt; -74.00597,\n                    \"defaultZoomLevel\" =&gt; 10\n                )\n            )\n        )\n    )\n);\n\n?&gt;\n<\/code><\/pre>\n\n<h4>Translations\/Languages<\/h4>\n\n<p>This plugin is available in the following languages:<\/p>\n\n<ul>\n<li>English<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<ol>\n<li>(Make sure you have Simple Fields installed)<\/li>\n<li>Install the Simple Fields Maps Extension plugin<\/li>\n<li>You will find the Map field in the usual settings page of Simple Fields<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.4<\/h4>\n\n<ul>\n<li>Use better default values so plugin does not break if you don't enter a default zoom level or map type.<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Load scripts over HTTPS. Fixes http:\/\/wordpress.org\/support\/topic\/javascript-blocked-map-not-showing.<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Fixed strict standards warning<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Static maps did not care about any preferred zoom level that was set in GUI. Now they do, funky funky!<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Add dropdown to select preferred zoom level for each map<\/li>\n<li>Show notice in admin if user does not have Simple Fields installed<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fixed notice error if no additional image sizes where used in the theme currently in use<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Added support for coordinates with negative latitude\/longitude locations, like this one: 2.033630,-76.007050<\/li>\n<li>Added version number to scripts\/styles to cache bust.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added support for adding marker by entering its lng\/lat coordinates. Valid formats are: 48.858278,2.294254 or 48.858278 2.294254<\/li>\n<li>Made plugin translatable<\/li>\n<\/ul>\n\n<h4>1.1.6<\/h4>\n\n<ul>\n<li>Fixed a bug with the latest version of Simple Fields<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>It's tricky to create to class because Simple Fields must be added\/loaded already when creating the class. The modified solution works, but perhaps only on specific versions of PHP. Have to check this in more details...<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>A marker\/location can now be removed\/unset. \nThis is useful if you have a map field added to all your posts, but wan't to exclude the map for a single post. \nThis is also the default behavior, so a post don't not risk being saved with the wrong position (or at least the risk is lower).<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Autocomplete was out of control when using repeatable fields. It's now back in control.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>The search box is now much better. It can search for Places, i.e.  establishments, geographic locations, or prominent points of interest.<\/li>\n<li>Return values now return much more info if the location was selected through the new autocomplete place search. The return array now also have:\n\n<ul>\n<li>The name of the selected place<\/li>\n<li>The formatted address of the place<\/li>\n<li>A address_components-object thas has (according to Google): a \"collection of address components for this Place's location\"<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Modified the way args are passed with return_values, since wp_parse_args don't work recursive.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added static maps to return values.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Clearified the fact that you need the latest version of Simple Fields.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Typos in readme<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Version 1. It works and it's groovy!<\/li>\n<\/ul>","raw_excerpt":"Extension to Simple Fields that adds a field type for selecting a location on a Google Map.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19616","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=19616"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eskapism"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19616"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19616"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19616"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19616"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19616"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}