Simple Fields Map extension

Adds a new field type to Simple Fields that let you choose a location.
The coordinates (lat/lng) of that location is saved
and easily retrieved in for example your theme.
Happy geocoding!
Features
- Easily add maps to any post, page or custom post type
- Integrates seamlessly into Simple Fields
- You can have multiple maps with separately settings
- Each map can have it’s own:
- zoom level
- map type (Roadmap, Satellite, Hybrid, Terrain)
- default location
- Search location of address by using built in search box
- Search location by enter its latitude and longitude coordinates
- Supports Repeatable Fields – have any amount of maps connected to each post
- From each saved position you can get
- Latitude and Longitude
- Address information, including store/shop name if that was what the user searched for when adding this location
- Preferred zoom level
To add a map to a field group programmatically
Slug for this field extension is “googlemaps”.
Full example using register field group:
<?php
// Add a field group with a Google Map-field
simple_fields_register_field_group('sf_map_test_field_fg',
array(
'name' => 'My map',
'slug' => "mu_map"
'repeatable' => 1,
'fields' => array(
array(
"type" => "googlemaps",
"slug" => "sf_map",
"name" => "Test map",
"options" => array(
"defaultZoomLevel" => 10,
"defaultMapTypeId" => "HYBRID", // ROADMAP | SATELLITE | HYBRID | TERRAIN
"defaultLocationLat" => 40.71435,
"defaultLocationLng" => -74.00597,
"defaultZoomLevel" => 10
)
)
)
)
);
?>
Translations/Languages
This plugin is available in the following languages:
- English
Usage
- (Make sure you have Simple Fields installed)
- Install the Simple Fields Maps Extension plugin
- You will find the Map field in the usual settings page of Simple Fields
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



