✅
Link to the plugin page: https://zeroqode.com/plugin/google-map-bubble-mobile-1781252511684x692936177376560500
Demo to preview the plugin:
✅
Introduction
A fully interactive Google Maps element for your Bubble native app, built on top of the Google Maps JavaScript API. It supports map configuration, custom styling, markers with custom icons and colors, marker and map tap events, real-time GPS location tracking, and map controls - all accessible through Bubble states, events, and actions.
Prerequisites
This plugin is designed specifically for the mobile version of the Bubble editor. To test the plugin on your mobile device, use the TestFlight app available at: https://testflight.apple.com/join/t65D5D6R
⚠️
Please note that the testing app is currently available for iOS only.
❗
Known Issue: Zoom & Scroll Sensitivity
The entire page may move when attempting to zoom or interact with the map. This results in unintended scrolling behavior that can affect the overall user experience.
At this time, this behavior cannot be fully resolved due to platform limitations.
How to setup
Step 1 – Add the Plugin Element to Your Page
- Open the Design tab in your Bubble editor.
- Search for the Mobile Google Map element in the Elements panel.
- Drag and drop the element onto your page.
Step 2 – Configure Properties
Select the element and configure its properties in the Property Editor like API Key, Initial Latitude/Longitude etc
Plugin Element - Mobile Google Map
A Google Maps element that embeds and controls an interactive map in Bubble Mobile, allowing location display, marker management, GPS tracking, and real-time map state reporting.
Fields
Name | Description | Type |
API Key | Google Maps API key with Maps JS API enabled in GCP | Text |
Initial Latitude | Initial map center latitude | Number |
Initial Longitude | Initial map center longitude | Number |
Initial Zoom Level | Initial zoom level 1–22 | Number |
Map Type | Map style: roadmap, satellite, hybrid, or terrain | Dropdown |
Map ID | Cloud-based Google Map ID for advanced styling | Text |
Styles JSON | Snazzymaps / custom JSON style array string | Text |
Disable Default UI | Hides all default Google Maps controls | Yes/No |
Display Current Location | Displays current location position | Yes/No |
Enable Clustering | Group nearby markers into a single numbered bubble that splits apart as the user zooms in. Recommended above roughly 50 markers. | yes/no |
Cluster Radius | How close markers must be, in pixels on screen, to be grouped together. Larger values produce fewer, bigger clusters. | number |
Cluster Max Zoom | Zoom level above which clustering stops and every marker is shown individually. | number |
Cluster Min Points | Smallest number of markers that will form a cluster. Below this they are drawn individually. | number |
Show Traffic Layer | Overlays live traffic conditions on the map. Coverage varies by country. | yes/no |
Show Transit Layer | Overlays public transport lines and stations. Coverage varies by city. | yes/no |
Show Bicycling Layer | Overlays cycle paths and bike-friendly roads. Coverage varies by country. | yes/no |
Default Marker Icon | Image used for every marker that has no icon or color of its own. Leave empty to use the standard Google pin. | Image |
Default Marker Color | Color of the pin for markers without their own icon or color. Ignored when Default Marker Icon is set. | Color |
Marker Icon Width | Icon width in pixels. Defaults to 40 for images and 30 for colored pins. | Number |
Marker Icon Height | Icon height in pixels. If only width is set, the height is calculated from it. | Number |
💡
How marker appearance is chosen
Each marker uses the first option that is set, in this order:
- The marker’s own Icon
- The marker’s own Color
- The element’s Default Marker Icon
- The element’s Default Marker Color
- The standard Google pin
Width and Height apply to icons and colored pins. The standard Google pin cannot be resized, so if you set only a size, the plugin draws its own pin in Google red.
Element Actions
Set Center
Pan map to coordinates
Name | Description | Type |
Latitude | New latitude coordinate to pan the map | Number |
Longitude | New longitude coordinate to pan the map | Number |
Set Zoom
Set map zoom level
Name | Description | Type |
Zoom Level | New zoom level to set the map | Number |
Reset Map
Full reset: removes all markers, layers and routes, and returns the camera to the element’s initial latitude, longitude and zoom. If Display Current Location is on, GPS tracking restarts afterwards. To remove only the markers, use Remove All Markers instead.
Center On Location
Center the map on the current location. Requires Display Current Location to be on. If no GPS position has been received yet, an error is published to Error Message.
Name | Description | Type |
Zoom Level | Zoom level to set when centering on current location | Number |
Add Marker
Add a custom marker to the map. Adding a marker with an existing ID replaces it.
Name | Description | Type |
Marker ID | Unique ID for this marker. Adding a marker with an existing ID replaces it. Use the thing’s unique id when adding from your database. Generated automatically if left blank. | Text |
Latitude | Latitude coordinate of the marker | Number |
Longitude | Longitude coordinate of the marker | Number |
Title | Title of the marker, returned in Clicked Marker Title when the marker is tapped | Text |
Icon | Image for this marker. Overrides Color and the element’s defaults. | Image |
Color | Pin color for this marker. Ignored when Icon is set. | Color |
Icon Width | Width in pixels. Overrides the element’s Marker Icon Width. | Number |
Icon Height | Height in pixels. Overrides the element’s Marker Icon Height. | Number |
Add List of Markers
Adds a marker for every item of a list in one step, for example a Search for Stores. Select the data type, the list, and which fields hold the coordinates, ID, title, icon and color. Much faster than running Add Marker in a loop, and works with clustering.
Name | Description | Type |
Markers Type | The data type of the items to show, from your database or an API Connector call | Type |
Markers Source | The list of items, e.g. Do a search for Stores | List of things |
Latitude | Field that holds the latitude | Field (number) |
Longitude | Field that holds the longitude | Field (number) |
ID | Field used as the marker ID, returned by Marker Clicked. Leave empty to generate IDs. | Field (text) |
Title | Field used as the marker title | Field (text) |
Icon (from field) | Image field used as the marker icon. Has priority over the other icon and color options. | Field (image) |
Color (from field) | Text field with the pin color (#RRGGBB or rgba). Used when the item has no icon. | Field (text) |
Icon | One icon for all items that have no icon or color of their own | Image |
Color | One pin color for all items that have no icon or color of their own | Color |
Icon Width | Width in pixels | Number |
Icon Height | Height in pixels | Number |
Replace Existing Markers | Remove all current markers before adding this list. With an empty list this simply clears the markers. Routes and layers are not touched. | Yes/No |
💡
Items with an empty or invalid latitude or longitude are skipped. The number of skipped items is published to Error Message and Error Occurred fires.
💡
Set the ID field to the thing’s unique id. Then Clicked Marker ID tells you exactly which record was tapped, and you can remove or replace that marker later.
Remove Marker
Removes one marker by its ID. Routes, layers and other markers stay on the map. Does nothing if no marker has this ID.
Name | Description | Type |
Marker ID | ID given when the marker was added | Text |
Remove All Markers
Removes every marker from the map. Unlike Reset Map, routes, layers, the location dot and the camera position are kept. This action has no fields.
Load GeoJSON
Loads a GeoJSON dataset onto the map as a layer. Accepts a URL or the GeoJSON pasted directly. Fires Layer Loaded on success and publishes the layer's ID to Last Layer ID.
Name | Description | Type |
GeoJSON Source | A URL pointing to a GeoJSON file, or the GeoJSON itself pasted in. The plugin detects which by the first character. A URL must be publicly reachable and serve CORS headers, since the device fetches it directly. | Text |
Layer ID | Your own name for this layer, so Remove Layer can target it later. Loading again with the same ID replaces the previous layer. Generated automatically if left blank. | text |
Fill Color | Fill colour for polygons. | color |
Fill Opacity | Fill transparency from 0 (invisible) to 1 (solid). | number |
Stroke Color | Outline colour for polygons and lines. | color |
Stroke Width | Outline thickness in pixels. | number |
Fit To Bounds | Move and zoom the map so the whole layer fits on screen once loaded. | yes/no |
Load KML
Loads a KML or KMZ file onto the map as a layer. Fires Layer Loaded on success and publishes the layer's ID to Last Layer ID.
Name | Description | Type |
KML URL | Public URL of a .kml or .kmz file. Google's servers fetch and render it, not the device, so the URL must be reachable from the public internet — a private or localhost address will fail. Pasted KML text is not supported. | text |
Layer ID | Your own name for this layer, so Remove Layer can target it later. Loading again with the same ID replaces the previous layer. Generated automatically if left blank. | text |
Fit To Bounds | Move and zoom the map so the whole layer fits on screen once loaded. | yes/no |
Suppress Info Windows | Stop Google's built-in popup from opening when a KML feature is tapped. Turn this on if you want to handle taps yourself. | yes/no |
Remove Layer
Removes GeoJSON and KML layers from the map, either one by ID or all at once.
Name | Description | Type |
Layer ID | ID of the layer to remove, as given when it was loaded. Ignored when Remove All Layers is on. | text |
Remove All Layers | Remove every loaded GeoJSON and KML layer at once. When on, the Layer ID field is ignored. | yes/no |
Get Directions
Calculates a route and draws it on the map. Distance, duration and the encoded path are published to states, and Route Ready fires. Uses the Directions API, which is billed separately from the map.
Name | Description | Type |
Origin | Where the route starts. An address as text, or coordinates in the form "48.85, 2.29". | text |
Destination | Where the route ends. An address as text, or coordinates in the form "48.85, 2.29". | text |
Waypoints | Stops between origin and destination, separated by the | character. Each can be an address or "lat, lng". Waypoints increase the cost of each request. | text |
Travel Mode | How the route is calculated: DRIVING, WALKING, BICYCLING or TRANSIT. Transit is not available in every region. | dropdown |
Optimize Waypoints | Let Google reorder the waypoints for the shortest overall route. Leave off to visit them in the order given. | yes/no |
Show Route On Map | Draw the route on the map. Turn off to get the distance and duration into states without drawing anything. | yes/no |
Suppress Default Markers | Hide the A and B pins Google adds at each end of the route, so you can use your own markers instead. | yes/no |
Stroke Color | Colour of the route line. | color |
Stroke Width | Thickness of the route line in pixels. | number |
Fit To Bounds | Move and zoom the map so the whole route fits on screen. Turn off to keep the current view. | yes/no |
Clear Directions
Removes the route currently drawn on the map. The route states keep their last values. This action has no fields.
Geocode Address
Converts an address into coordinates. The result is published to the Geocode states and Geocode Completed fires. Only the best match is returned. Uses the Geocoding API, which is billed separately from the map.
Name | Description | Type |
Address | The address or place name to look up, for example "1600 Amphitheatre Parkway, Mountain View". | text |
Region Code | Two-letter country code, such as "md", that biases results towards that country. It is a preference, not a filter — results elsewhere are still possible. | text |
Language Code | Language for the returned address, such as "ro" or "ru". Defaults to the device language. | text |
Reverse Geocode
Converts coordinates into a street address. The result is published to the Geocode states and Geocode Completed fires. Only the closest match is returned. Uses the Geocoding API, which is billed separately from the map.
Name | Description | Type |
Latitude | Latitude of the point to look up. | number |
Longitude | Longitude of the point to look up. | number |
Language Code | Language for the returned address, such as "ro" or "ru". Defaults to the device language. | text |
Distance Matrix
Calculates travel distance and time between several origins and destinations at once. The full result is published as JSON to Matrix Result JSON, the first pair also to the individual states, and Distance Matrix Ready fires. Uses the Distance Matrix API, which is billed separately from the map.
Name | Description | Type |
Origins | One or more starting points separated by the | character. Each can be an address or "lat, lng". | text |
Destinations | One or more end points separated by the | character. Each can be an address or "lat, lng". | text |
Travel Mode | How travel time and distance are calculated: DRIVING, WALKING, BICYCLING or TRANSIT. Transit is not available in every region. | dropdown |
Exposed States
Name | Description | Type |
Error Message | Last error string, populated whenever an internal error occurs | Text |
Current Device Latitude | Current GPS latitude of the device, updated on each location change | Number |
Current Device Longitude | Current GPS longitude of the device, updated on each location change | Number |
Tapped Latitude | Latitude of the last point tapped on the map | Number |
Tapped Longitude | Longitude of the last point tapped on the map | Number |
Current Center Latitude | Latitude of the current map center | Number |
Current Center Longitude | Longitude of the current map center | Number |
Location Permission Status | Indicates the status of the location permission | Text |
Geocode Latitude | Latitude of the geocoding result. Filled by both Geocode Address and Reverse Geocode, and updated just before Geocode Completed fires | Number |
Geocode Longitude | Longitude of the geocoding result. Filled by both Geocode Address and Reverse Geocode, and updated just before Geocode Completed fires | Number |
Geocode Address | The full formatted address of the result, as Google writes it for the requested language. After Reverse Geocode this is the street address closest to the coordinates you supplied; after Geocode Address it is Google's tidied-up version of what you typed | Text |
Geocode Place ID | Google's permanent identifier for the matched place. Store it to look the same place up again later, or to pass it to other Google Places services — it is more reliable than storing an address, which can change | Text |
Route Distance (m) | Total length of the last calculated route in meters, summed across all legs including waypoints | Number |
Route Distance Text | Human-readable distance of the route as formatted by Google, e.g. “12.4 km”. For routes with waypoints it covers the first leg only - use Route Distance (m) for the total | Text |
Route Duration (s) | Total travel time of the last calculated route in seconds, summed across all legs | Number |
Route Duration Text | Human-readable travel time as formatted by Google, e.g. “25 mins”. For routes with waypoints it covers the first leg only - use Route Duration (s) for the total | Text |
Route Polyline | The route’s overview path in Google Encoded Polyline format. Can be stored and drawn again later | Text |
Matrix Result JSON | Full Distance Matrix result as a JSON array, one object per origin-destination pair, with the fields origin, destination, status, distance_m, distance_text, duration_s, duration_text | Text |
Matrix Distance (m) | Distance in meters of the first origin-destination pair that returned a result | Number |
Matrix Duration (s) | Travel time in seconds of the same pair as Matrix Distance (m) | Number |
Last Layer ID | ID of the most recently loaded GeoJSON or KML layer, set just before Layer Loaded fires. If no Layer ID was given, contains the generated one | Text |
Clicked Marker ID | ID of the last marker the user tapped, set just before Marker Clicked fires | Text |
Clicked Marker Latitude | Latitude of the last tapped marker | Number |
Clicked Marker Longitude | Longitude of the last tapped marker | Number |
Clicked Marker Title | Title of the last tapped marker | Text |
Element Events
Name | Description |
Map Ready | Triggered when the WebView map finishes initialising and is ready to use |
Error Occurred | Triggered when an internal error is caught and the error message state is updated |
Location Updated | Triggered when a new GPS position is received and the current latitude and longitude states are updated |
Geocode Completed | A geocode or reverse geocode returned a result |
Route Ready | A route was calculated and the Route states are filled |
Distance Matrix Ready | A matrix was calculated |
Layer Loaded | A GeoJSON or KML layer finished loading and Last Layer ID is set |
Marker Clicked | The user tapped a marker. Read it in the Clicked Marker states. |
Map Tapped | The user tapped an empty spot on the map. Read the point in Tapped Latitude and Tapped Longitude. Tapping a marker does not trigger this event. |
Workflow example
Set Map Zoom Level
Use this workflow to set the zoom level of map element.
- Create a workflow that calls the “Set Zoom” action and set the desired zoom level
The selected element should now zoom in based on the level set.
Set Map Center
Use this workflow to pan map element to coordinates.
- Create a workflow that calls the “Set Center” action and set the desired coordinates
The selected element should now center based on the coordinates set.
Add Marker
Use this workflow to add markers on the map element.
- Create a workflow that calls the “Add Marker” action and set the desired coordinates
The desired marker should be displayed on the map based on the coordinates set.
Show a Route Between Two Points
Use this workflow to draw a route on the map and read back its distance and duration.
- Create a workflow that calls the Get Directions action.
- Set Origin and Destination. Each accepts either an address as text, or coordinates in the form
47.0245, 28.8323.
- Optionally set Travel Mode, and add stops in Waypoints separated by the
|character.
- To display the results, add two text elements bound to the map's Route Distance Text and Route Duration Text states.
The route is drawn on the map, the camera frames it, and the Route Ready event fires once the results are available. Run Clear Directions to remove the line.
Get Directions uses the Directions API, which must be enabled on your key separately from Maps JavaScript API.
Load a GeoJSON Layer
Use this workflow to display your own geographic data — delivery zones, districts, service areas — on top of the map.
- Create a workflow that calls the Load GeoJSON action.
- In GeoJSON Source, paste either a public URL to a GeoJSON file or the GeoJSON itself. The plugin detects which.
- Set Layer ID to a name of your own, for example
delivery_zones, so you can remove it later.
- Adjust Fill Color, Fill Opacity, Stroke Color and Stroke Width to suit your design.
The layer is drawn on the map and, with Fit To Bounds on, the camera moves to frame it. The Layer Loaded event fires and the layer's ID is published to Last Layer ID.
To remove it, call Remove Layer with the same Layer ID, or turn on Remove All Layers to clear everything at once.
If you supply a URL, it must be publicly reachable and serve CORS headers, since the device fetches it directly. Note that GeoJSON stores coordinates as
[longitude, latitude] — the opposite order to the rest of the plugin.Find Coordinates From an Address
Use this workflow to turn a typed address into coordinates and move the map there.
- Create a workflow that calls the Geocode Address action, with Address set to your input element's value.
- Add a second step in the same workflow: Set Center, with Latitude and Longitude bound to the map's Geocode Latitude and Geocode Longitude states.
Because geocoding is asynchronous, the states are not filled by the time the second step runs. Instead, create a separate workflow on the map's Geocode Completed event and put Set Center there.
The formatted address Google matched is published to Geocode Address, and its permanent identifier to Geocode Place ID — store that rather than the address if you need to look the same place up later.
Reverse Geocode works the same way in the opposite direction: give it Latitude and Longitude and read the address from the same states.
Show Markers From Your Database
Use this workflow to put a marker on the map for every record of a data type, for example all your stores.
- Create a workflow on the map's Map Ready event that calls Add List of Markers.
- Set Markers Type to your data type, for example Store, and Markers Source to Do a search for Stores.
- Select the Latitude and Longitude fields. Set ID to the store's unique id and Title to its name.
- Optionally select a Color (from field) to color markers by status, or set one Icon for all of them.
- To show the stores again after a filter changes, run the same action with Replace Existing Markers on.
All markers appear in one step. With more than about 50 markers, turn on Enable Clustering on the element.
Open Details When a Marker Is Tapped
Use this workflow to show a card or popup with the tapped place, as in a store locator.
- Create a workflow on the map's Marker Clicked event.
- Add a step that shows your popup or group.
- Inside it, display Clicked Marker Title, or look up the record with Do a search for Stores where unique id = the map's Clicked Marker ID.
For the lookup to work, add your markers with the thing's unique id as Marker ID.
Add a Marker Where the User Taps
Use this workflow to let users pick a point, for example a delivery address.
- Create a workflow on the map's Map Tapped event.
- Add Add Marker with Latitude = the map's Tapped Latitude, Longitude = Tapped Longitude, and a fixed Marker ID such as picked_point.
- Optionally add Reverse Geocode with the same coordinates and show the address in the Geocode Completed event.
Because the Marker ID is fixed, each new tap moves the same marker instead of adding another one.
Remove a Single Marker
Use this workflow to take one marker off the map, for example when an order is completed.
- Create a workflow that calls Remove Marker.
- Set Marker ID to the ID used when the marker was added, for example the order's unique id.
Only that marker disappears. To clear all markers but keep routes and layers, use Remove All Markers.
Changelogs
Update 23.11.26 - Version 1.5.0
- Fixed: field typos, default latitude in Add Marker removed, coordinate check added, route/matrix/layer states described
Update 03.09.26 - Version 1.4.0
- Added: routes with waypoints, address-to-coordinates lookup, GeoJSON and KML layers, and marker clustering..
Update 19.08.26 - Version 1.3.0
- Bubble Plugin Page Update (Description).
Update 11.08.26 - Version 1.2.0
- Fixed Android map gestures and optimized performance by eliminating redundant re-renders and external script reloads..
Update 01.07.26 - Version 1.1.0
- Bubble Plugin Page Update (Description).
Update 09.06.26 - Version 1.0.0
- Initial Plugin Release..