Yeah we do use a the current geographic location as the map center only if it is available.
Do you suggest we don’t use this as a map center? Is there a way to track the user’s location in a better way instead? Is it better to use a button to set that and if so can we add 1 marker instead of having a marker set be taken up?
Ideally we would like to be able to have the user see their location with compared to the markers on the map.
@anon73358276
Actually my bad I misdiagnosed. The reason it must be auto panning back to the center is probably because you may have the ‘Zoom to fit markers on load’ option checked.
Regarding your requirement, the maps (bdk) is very much designed to incorporate your usecase. You can use the :converted to list on the user location and provide it as one of the marker set or alternatively set the ’ Map Center ’ to current users’ location
So interestingly, I don’t think that is the issue. We don’t have the “Zoom to fit markers on load” checked as you can see in the attached below. What we are currently doing is instead of passing “Current User’s location” we are passing the Current Geographic Position through a conditional if it is not empty.
The reason we wanted to this in this manner is because we want the map to be useable even if the current user’s location is not available and if the current user has never signed up for an account. So that seemed like the best option.
But with regards to the map auto re-freshing we still don’t understand why the map would refresh so often at this.
Hi @gaurav, how would I display directions road by road once I add directions via worklfow? I have randomized addresses. So idk how I would source nearby roads for directions. How would I do that for a courier/route?
@gaurav another standout plugin! I have a couple of questions for specific functionality I’m trying to achieve.
The most important thing I need to do is trigger an alternate custom icon when hovering on a related element outside the map (think Airbnb-style) so that people can tell what listing they’re hovering over.
The other think that I’m trying to work out is directions, though I know that you don’t have those included in the product. Wondering if you plan to include that at any point. Keep it up!
Hi @gaurav. I’ve been using the plugin for a while, and I think I finally got a handle of it. However, I’m still a beginner for certain things…is there any basic link/video where I can find how to replicate Google’s GPS “blue circle”, to constantly show where the user is in relation to the map? Step by step would be awesome. (Maybe someone else already posted it). Thanks!
Hi @richardsherman,
Thank you for the feedback! Appreciate it. More to come on this plugin
Both the points are well taken. I’m looking to add these.
Just trying to balance out features vs. overloading users with options of data to provide in plugin… Bubble plugins aren’t allowed to be built as neatly as the native plugins which can display / hide inputs conditionally.
Hi @itMoves,
All you need to do for this is use bubble’s Current Geographic position as the value of the marker… Current Geographic position automatically updates when user moves
First off, this is the most comprehensive maps plugin I’ve seen so far, so I thank you making it. There are a couple issues/feature requests I’m having/need to be able to actually use it for my intended use case, however.
One of my main concerns is that I’d like to avoid duplicate markers, and make sure that certain marker types show with priority. Unfortunately, bubble doesn’t seem to allow grouping by location, which was my first go to. I’ve noticed that sorting the data sources of a marker allows for controlling the order of the markers that are shown within that marker type, but I can’t seem to get certain marker types to prioritize over others. I also feel like a “remove duplicates by location” option would be useful.
Another way I can think of that would mitigate the above issues and add other functionality. I would like would be to have true dynamic fields, rather than the partially-dynamic ones you have. For example, instead of choosing a field on the item for location, tooltip, info, or marker icon, it would be really nice to be able to dynamically specify these. That way I could populate the info content with dynamic data, and change the marker icon depending on the current state of the item (e.g. I could set the marker icon to “Do a search for IconItems where type = this MarkerItem’s type:first item’s image”).
One other minor thing: Some settings for marker clustering would be nice. As far as I can tell, it just sort of auto-assigns a color. You can’t change that color or the label of that color, or specify what happens if you tap the cluster. Normally I wouldn’t care much about this, but if two items have the same location, then the cluster just never goes away and you can’t view their data.
Hope to see some of these in here soon, and hope you have a good weekend!
So that would be tricky since each marker corresponds to a ‘thing’ which you provide as data source in the list of markers. E.g. if you have 2 restaurants with markers at same location, which one to remove?
Bingo. As much as I would love such a functionality, bubble’s plugin builder doesn’t support these types of dynamic input. Infact, I’ve appealed to bubble several times to improve their plugin building tools, for these very reasons over couple of years. I hope they do it soon
So what happens when you tap a cluster is driven by google’s core clustering module. And given the plugin build tool limitations, it really wouldn’t be practical for me to offer options to customize this. What I am going to implement is for you to be able to specify custom coloring / images for cluster. Already have a implementation for this under testing.
Cheers and thank you for the feedback & suggestions
So that would be tricky since each marker corresponds to a ‘thing’ which you provide as data source in the list of markers. E.g. if you have 2 restaurants with markers at same location, which one to remove?
Hmm, that’s a good point. Perhaps use the same method to determine which to remove as it uses to determine which is on top? So only show the item furthest along in the list? Or if its easier, shown the item closest to the list’s front?
Bingo. As much as I would love such a functionality, bubble’s plugin builder doesn’t support these types of dynamic input. Infact, I’ve appealed to bubble several times to improve their plugin building tools, for these very reasons over couple of years. I hope they do it soon
Dang, really? That seems like a major roadblock to bubble development. If you point me to a thread where you make this case to bubble I’d be happy to throw in my support!
So what happens when you tap a cluster is driven by google’s core clustering module. And given the plugin build tool limitations, it really wouldn’t be practical for me to offer options to customize this. What I am going to implement is for you to be able to specify custom coloring / images for cluster. Already have a implementation for this under testing.
Is there perhaps a way to allow the user to be able to specify what happens when they tap a cluster? Kind of similar to how you can specify a workflow that runs when you tap a marker?
I am trying to use the plugin and have a few questions.
Centre Pin is being marked at wrong place. (I am using a custom Icon if that makes a difference?) Is it expected?
Can you please explain clustering logic? i.e. How is clustering done? Is it two things on exact geolocation? Is there a radius that you see? etc.
I see two clusters yellow and blue. Are they corresponding to the marker1 and marker2 that I have selected? Can I control colours of these?
Clicking on a cluster icon, zooms me to it. But I don’t know how to utilise it. Can we get the “list of elements in current cluster” exposed in workflows or as values in other elements?
Can we also have actions of “When a cluster is clicked”?
I click on a cluster that says “9”. When I click on it, it breaks into two of “7” and “2”. That is good. However, now when I click on “7”, nothing happens. How do I get a list of what is there in those 7?
UPDATE: I realised that “nothing happens” is because I have 7 things on exact same geolocation. But it is a usual case for me, and when this happens I want to just get the list of things which are there at that point. How do I get that?
Is there a documentation on what is “Info window html1” and “custom icon field1”?
It should show up in the same as it does if you used that geographic address in google maps. It may appear to be in the wrong place if your marker is too big. Typical google maps markers are 24x24, 32x32 or 48x48 sizes
Clusters are simply a visual representation, to make it more friendly to the eyes. We trigger events when markers are clicked, not clusters. Clicking a cluster is simply an action similar to zooming into that region to show the markers at that level.
You can at any point, see the list of visible markers in the bounds of the map area using the map element’s List of visible markers output, regardless of whether they appear inside a cluster / outside.
That would be if you’re passing an invalid data to the plugin. Consider adding a filter on your data source of markers etc. so that the location isn’t empty.
So when your data source changes, bubble runs the plugin update function again, causing the blinking. I’m looking into how to avoid re-renders of the markers already loaded but it fairly complex so would take a bit of time.
Generally it doesnt blink this much as shown in screenshot. Maybe your search result keeps refreshing / changing every second? My hunch is you have something associated with a address that keeps updating very rapidly e.g. current user’s location
Can you compare your setup with the provided editor & demo in the plugin documentation. The links are in the ‘guide’ subsection
No, that’s not the case. Marker is pretty small. What I have seen is that when the map is loaded initially with a centre value, the marker shows at right place. But when I change the address field from which it is reading the centre value, the marker goes at wrong place.
Thanks. That helps.
Okay. Maybe I’ll use it. Though it is more of a somewhat imperfect workaround to what I really want.
That was not the case, as I was passing exact same list (I copy/pasted expression) that I was passing to native map. But anyway, now I have changed the way I was getting the data to work around, and hence it is not happening. But it indeed was an issue.
No, my data was not changing as such. Maybe Bubble was taking time to compute my list as I had given some complex condition. Anyway, I have simplified it now.
Hi @gaurav, the issue with map centre pin not showing up reliably is still happening.
As a workaround, I tried to create a list of markers with just one element having centre pin location and show that as one of the marker list. It works sometimes, but doesn’t always.
And now what has happened is that no markers are being shown. I have three marker lists. None of them are showing now.
Would you want to look at my setup and suggest what could be going wrong? It is pretty straightforward setup within your map. Not sure what can go wrong in this.
UPDATE: I have got the issue of markers not showing up, resolved. So the centre pin not showing is resolved via the workaround of using it as one of the markers, but the bug still remains.