Beautiful Maps - Mapbox
  • Introduction
    • 👋Welcome
    • Key use cases
    • Key features
    • Demo apps
  • Getting Started
    • Registering for a Mapbox account
    • Install the plugin
    • Adding the access token
    • Adding a map to your app
  • Loading a Map
    • Selecting a default location
    • Setting zoom levels
    • Setting a map style
    • Adding controls to a map
  • Loading Markers
    • Structuring your database for markers
    • Adding multiple markers
    • Adding a single marker
    • Adding popups to markers
    • Using custom icons
    • Changing marker on hover
    • Removing markers from a map
    • Trigger an action when marker is clicked
  • Geolocation
    • Show the user's current location
  • Drawing Mode
    • Drawing shapes on a map
    • Saving drawings
    • Loading drawings
  • Route Navigation
    • Adding navigation
Powered by GitBook
On this page
  1. Drawing Mode

Saving drawings

PreviousDrawing shapes on a mapNextLoading drawings

Last updated 3 months ago

Any drawings you add to a Mapbox Map will be available via the below exposed states on the Mapbox Map element:

  • GeoJSON - Polygon

  • GeoJSON - Line

  • GeoJSON - Point

You can then save the GeoJSON down to your database:

Please note that in teh ab

You will end up with something like this in your database:

Demo app

You can view an example of how to save drawings (GeoJSON) in the 'Save Drawings' section of the demo app below:

Bubble - Visual ProgrammingBubble
Logo