Is there a way to just right click on the map and say calculate distance of this road? And then click again like 1 or 2 blocks away. You can do this in regular google maps, but the right click menu options don't popup if pick the map element on bubble. For context, I need to get the distance between two points in a map, typically a few blocks.
Good question. It'd follow the same method as I mention in this video, but instead of referencing values stored in an input field, you'd just need to use the 'do a search' function to pull the value from your database. Hope this helps.
Building an Uber Clone...how do you get the distance and duration to show under the map after user has input pickup and destination locations. Just trying to get that info added to the main screen. Thanks.
Good question. You could add a text element and perform the same calculations mentioned in this video. These text elements can update in real-time as the distances/times change
Just a tip. The "distance to" tool calculates distance as the crow fly's and NOT driving distance. If you look at Google driving distance you'll see that your's is off because of this. You'll need the distance and duration API for an accurate driving distance.
From what I'm aware, this won't be possible with the free map plugin that Bubble provides. You'll need to install a paid plugin to build something advanced like this.
Great question. This is possible using a third-party plugin like Mapbox. It provides a bunch of additional features that the default Bubble map element doesn't include. Hope this helps point you in the right direction!
Thanks! Super helpful.
Awesome to hear it was helpful 🙌
Perfect 🤩
We got you 😎
good stuff!
Glad it could help 🙌
Is there a way to just right click on the map and say calculate distance of this road? And then click again like 1 or 2 blocks away. You can do this in regular google maps, but the right click menu options don't popup if pick the map element on bubble. For context, I need to get the distance between two points in a map, typically a few blocks.
How do you calculate two locations saved in the database? For example, from a store location and the user's delivery location?
Good question. It'd follow the same method as I mention in this video, but instead of referencing values stored in an input field, you'd just need to use the 'do a search' function to pull the value from your database.
Hope this helps.
Building an Uber Clone...how do you get the distance and duration to show under the map after user has input pickup and destination locations. Just trying to get that info added to the main screen. Thanks.
Good question. You could add a text element and perform the same calculations mentioned in this video. These text elements can update in real-time as the distances/times change
Just a tip. The "distance to" tool calculates distance as the crow fly's and NOT driving distance. If you look at Google driving distance you'll see that your's is off because of this. You'll need the distance and duration API for an accurate driving distance.
is there anyway to draw a polygon on a map using a free map plugin on bubble? trying to calculate area from that polygon
From what I'm aware, this won't be possible with the free map plugin that Bubble provides. You'll need to install a paid plugin to build something advanced like this.
sorry but which plug-in do you use to get the map functionalities please?
This is just the standard Bubble map element 👍
How about calculating the duration ?
Great question. This is possible using a third-party plugin like Mapbox. It provides a bunch of additional features that the default Bubble map element doesn't include.
Hope this helps point you in the right direction!