Hi Alex - me again! I wanted to check if you have any ETA on the āChange Icon for Clicked Markerā event (no pressure )
And then secondly, I would love a state to know which Marker IDs are in the viewport of the map. I would like to build something like an āAirbnb-styleā map and then filter based on what the users sees. I know that the Zeroqode plugin has that state, but I just like your Plugin better
I did start this and made a good bit of progress, but thereās quite a few edge cases that I need to make sure the action works with. I canāt guarantee a specific ETA, but hopefully Iāll get it out sometime over the next 1-2 months.
You can figure out which markers are visible on the map (and get their associated marker IDs) by using the 4 exposed states outlined in the below post:
You basically need to do a search for all locations where the lng/lats fall within the bounds given by these custom states. Let me know if that makes sense or if I can clarify further
It might be interesting for others to know how I implemented this. There is some complexity due to the crossing of international date lines. See below screenshots with the scenario where the Map bounds are crossing datelines (with the advanced filter), and where it doesnāt cross datelines.
āRemove Single Markerā action - November-24 update
Just released a new version of the Beautiful Maps - Mapbox plugin that lets you remove a single marker from the map:
You can do this via the new āRemove Single Markerā action.
Hi, thank you @alexcooney5 for this plugin
I am facing an issue with the directions functionality. I need the starting point (A) to remain fixed on the userās location on the map, while allowing the user to control the endpoint (B) and set it on the marker of their choice. Is it possible to make this feature work as described
Thank you so much for your response and for your great work on this plugin! I truly appreciate your engagement and efforts.
I sincerely hope you can consider adding this functionality in the future as it would be a fantastic upgrade to the map and take it to the next level. I was planning to use this plugin for a large project since it has all the features I need. Unfortunately, due to the current limitation with dynamic marker interaction, Iām unable to proceed with it.
It would mean a lot if you could add this feature, as it would make a huge difference for projects like mine. Thank you once again for your amazing work, and Iām hopeful youāll be able to implement this in the future!
Thank you for the feedback @franaccess.ksa - I appreciate it would be a useful feature for your project.
Iāve made a note of your request and will let you know if I decide to add it to the plugin.
PS - you can also keep up to date with our plugin product releases by signing up for our monthly newsletter. Itās where we announce all product releases/updates
Iāve successfully used the Mapbox plugin, and it works perfectly. However, when I wrap the app using Natively BDK, the map fails to load. Can you help me find a solution?
Quite a few people who use this plugin have successfully used it in wrapped apps, so Iām surprised youāre having issues with it (if it is indeed my plugin )
How to add markers to a map (video tutorial) - January-25 update
Just released a video tutorial on how you can add markers to a map using the Beautiful Maps - Mapbox plugin.
Iām building what I assumed would be a straightforward GIS app for one of our customers, but I feel like Iāve hit a wall. What Iām trying to do is simple -
User draws a new feature while in draw mode. This can be either a polygon or a point.
Once the feature has been drawn, a workflow is triggered, setting the value of a custom state that determines the visibility of a form overlay. In this step, the value is set to ātrueā thus making it visible to the user. With the form visible, the drawing controls should be disabled so that there can be only one geoJSON per record.
Once the user completes the form, they click a button and a new record or āthingā is created that contains the form data along with the point/poly geoJSON.
Iām currently held up on step 2.
Attempted workarounds:
Using the āstandardā Mapbox plugin, I was able to accomplish this by using the āA MapBox Map Polygon is Drawnā event as a trigger. However, that doesnāt appear to be an option in this plugin. I eventually came up with what I thought was a clever workaround - I would create a ālistenerā for each of the two feature types that trigger when the user creates a new feature. The idea was to check whether the mapās geojSON state (s) were empty, and use the āClear geoJSONā event to reset the states between each iteration. While implementing this, I quickly learned that the geojSON map states hold data from the most recent drawing of that type and the data canāt be āresetā so to speak, only overwritten. Clear geojSON only appears to remove drawn features on the map, but doesnāt clear the actual states. The result is that my implementation worked flawlessly⦠once.
I also tried setting the initial value of an input to reflect the mapās geojSON states to trigger a workflow when the value changed. This would typically indicate that a new feature has been drawn on the map so it seemed like a good plan, but⦠for some reason I couldnāt get the event to trigger even though my inputs were updating without issue. The only way I could get this to work was by manually changing the values myself.
If all of that sounds like a mess, itās because it is! I could elaborate further, but this post is already starting to look like an essay. And besides, the word āgeoJSONā has to be the most annoying word to type, and Iām not sure I can take much more of it. Itās entirely possible that these hurdles stem from user-error on my part, so if any experienced bubble/mapbox devs out there can tell me that Iām an idiot and that thereās an existing solution, I would welcome any input!
Thanks in advance and let me know if I need to clarify anything.
Iām not familiar with the inner workings of the other Mapbox plugin you tried, but I suspect it works in the same was as their āA MapBox Map Polygon is drawnā event.
Hope that helps and if youāve any other questions let me know