🗺️
Mapster WP Maps
HomeProExamplesContact
  • Getting Started
    • About
    • Installation
    • Key Concepts
    • Importing/Exporting
    • Guides
      • Your First Map
      • Creating a Crowdsourced Map
      • Set Up Recurring Import
      • Adding a Custom Style
      • Building a Custom Popup
  • Creating Shapes
  • Displaying Maps
  • Maps
    • Map Tiles
    • Initial View
      • Fit to Features
      • Manual Values
      • User Location
    • Map Size
    • Points, Lines, Polygons
    • Clustering
    • Interactivity
    • Controls
      • Basic Controls
      • Geocoding & Geolocation
      • Togglers
      • Other Controls
      • Control Render Order
    • Filters
      • Category Filter
      • Custom Search Filter
      • Filter Dropdown
    • Lists
      • Store Locator
    • Specialty Maps
      • Map Comparer
      • Heatmaps
      • Elevation Profile
      • User Submission
      • Listing Page Map
    • Preloader
    • Developer
      • Javascript
      • Embedding Maps
      • Faster Loading (Cache)
      • Caching
      • Progressive Loading
  • Locations
    • Markers
    • Circles
    • Labels
    • Icons
    • 3D Models
  • Lines
    • Lines
  • Multi Lines
  • Polygons
    • Flat Polygons
    • 3D Polygons
    • Image Polygons
  • Multi Polygons
  • Popups
    • Popup Templates
      • Introduction
      • Layout, Colors, Text, CSS
      • HTML
      • Options
    • Popup Content
  • Pro Sections
    • User Submission
      • Overview
      • Submission Interface
      • Adding Custom Fields
      • Submission Admin
  • Mass Edit
  • Settings
    • General
    • Account Management
  • Advanced
  • Import
  • Tileset Management
  • Developer
    • Mapster Map ACF Field
    • Mapster Map Gravity Forms Field
    • Custom Scripts
    • Hooks
    • Spatial DB & API
    • Internationalization
Powered by GitBook
On this page

Was this helpful?

  1. Developer

Mapster Map Gravity Forms Field

Add a field to your gravity forms to allow entering of geographic data with ease.

PreviousMapster Map ACF FieldNextCustom Scripts

Last updated 18 hours ago

Was this helpful?

In addition to an ACF field, Mapster also includes a geographic field you can use with Gravity Forms! This lets you capture geographic information from users and also to display it using a variety of tools.

This feature is relatively new and currently quite simple. If you want any more convenience features or minor changes, please let us know and we'll get on it!

Start off by going to Forms after you've installed both Gravity Forms and the Pro version of the Mapster WP Maps plugin. Create a new form. Then go and select the Mapster Map field from the right-hand side.

When you've added the field, then click on the field to change its settings.

Set the Field Label (the name of the field), the starting Center Latitude and starting Center Longitude, and the starting Zoom level.

To preserve fast loading, Mapster doesn't automatically load the map Javascript before you add the form — so after you create it, you'll need to Save Form and reload the page to see the map.

Once you reload, you'll see something like this:

From here, you can change the Map Type between Satellite and Streets.

You can also select the Geographic Type you want users to be able to submit: Point, Line, or Polygon. the tools in the top left of the map will change accordingly.

Now your form is ready for your users or your admins to use!

To use it on the front end, simply have users click the icon in the top left and draw on the map. When they add a point or draw a line, everything will be saved in the database as GeoJSONs.

Once a user has submitted, you will see the responses in the Entries area of Gravity Forms. By clicking on one, you'll see the submitted geography displayed on a map.

With this, you've now saved user input on geographies inside Gravity Forms! Good job.

If you're having trouble with these, try and see what the best zoom and center are, and copy-paste those settings here.

making a normal Mapster map