Plugin Directory

Simple Fields Map extension

Extension to Simple Fields that adds a field type for selecting a location on a Google Map.

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
  • 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

To add a map to a field group programmatically

Slug for this field extension is "googlemaps".

Full example using register field group:

simple_fields_register_field_group('sf_map_test_field_fg',
            array(
                'name' => 'My 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

Requires: 3.5 or higher
Compatible up to: 3.5.1
Last Updated: 2013-5-14
Downloads: 946

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1