Leafy Maps šŸŒæ (new free plugin)

Amazing! Thanks for you great effort in developing this plugin, @vini_brito :clap:

Hi Vini, I am not able to draw a point. I am using macbook and doing ctrl + click but not point is drawn. I can see pencil if i click ctrl button

Hi Tishant, itā€™s the second report I receive on this, so Iā€™ll definitely look into testing it in a macOS.
Seems like thereā€™s a bug in Safari.
I have a macOS device coming in next month, then Iā€™ll be able to look into it and will update here any findings (:

Hi I am using chrome only on macbook

Just tested on another laptop and it is working. Definitely to do something with macbook and not browser as i am using chrome on both

Ah thanks for that information! Super important to know!

The plugin Leafy Maps / action Show map on a Leafy map threw the following error: Error: Map container not found.
at i._initContainer (https://unpkg.com/leaflet@1.5.1/dist/leaflet.js:5:37896)
at initialize (https://unpkg.com/leaflet@1.5.1/dist/leaflet.js:5:26377)

Getting this error while using the map on a popup

Itā€™s possible that the workflow that initializes the map is being triggered before the map element is visible, try using ā€œDo when condition is true -> Leafy Maps X is visibleā€

1 Like

I see that visible state isnā€™t available under workflow actions. Is it a lot of work to add this? Would make things a lot easier :slight_smile:

This is what I meant in my last message, see if it helps:

Peek 28-08-2020 15-51

1 Like

@vini_brito I donā€™t see it. Is the list of markers exposed anywhere in a state btw? That way we can erase the list whenever necessary.

I also couldnā€™t add a list of markers, using the same workflow I can add a single marker succesfully. I can send you a PM with the video.

![Screenshot - 2020-08-29T205308.485|400x500]
(upload://wf4L41nPe8UUUNe2BQVaGEsaMEY.png)

Hello! :blush:
Naturally, makes total sense, so I just added the ā€œErase list of markersā€ workflow action.
I also fixed a bug and now the element publishes the marker unique name in the ā€œClicked marked nameā€.
Also, created a new state ā€œClicked marked indexā€, this helps creating logic, for example if the user clicks the marker number 1, then you can grab the first item of a list and do something with it, likely related to the list passed to the ā€œAdd list of markersā€, since it is in the same order.

I see that in your image the field to add the unique name doesnā€™t shows, which is weird, try deleting the workflow action and recreating it.
But before that, upgrade to the latest version, Iā€™ve just released one with the ā€œErase listā€ upgrade :wink:

Take a look:
Run mode: https://pdf-conjurer-testbed.bubbleapps.io/version-test/add_list_of_markers?debug_mode=true

Edit mode: https://bubble.io/page?type=page&name=add_list_of_markers&id=pdf-conjurer-testbed&test_plugin=1562697922620x934462587697889300_current&tab=tabs-1

2 Likes

Youā€™re the king Vini. Thereā€™s a minor bug here though!

Nice spotting! Indeed itā€™s a little bug, but the mechanism relies on each list being unique in its name, so adding the same list twice, in terms of unique name, indeed will make it behave weirdly like that.

But that got me wondering, so I tested two lists with different names and it worked fine, so just stick to the planned use case and nothing will short-circuit :yum:

1 Like

@vini_brito Iā€™m having issues loading a list of markers. Also, I canā€™t load a custom image on the markers with list of markers, it does work with a single marker. Iā€™ve added some images below.

p.s. This only happens when I leave the Popup texts empty.

Screenshot - 2020-08-30T203108.871

Screenshot - 2020-08-30T203132.234

Hi I am still unable to get the leafy map. I am still getting the same error.

Basically it is displaying the visual element maps without any problem but getting error on leafymap.

The plugin Leafy Maps / action Show map on a Leafy map threw the following error: Error: Map container not found.
at i._initContainer (https://unpkg.com/leaflet@1.5.1/dist/leaflet.js:5:37896)
at initialize (https://unpkg.com/leaflet@1.5.1/dist/leaflet.js:5:26377) (please report this to the plugin author)

@nocodeventure Sure, will look into it soon enough! Thanks for the details (:

@tishant61191 Hmm, Iā€™d need more details, can you send, via private message if you prefer, screenshots or a video or a view link to your app? Also, what exactly is not working as expected? You mentioned that the map loads but still throws an error. So it loads, but something else isnā€™t working, what would be it?

@vini_brito

Does this plugin not work in a pop up? Getting this error when I put it inside a pop up.
Works fine outside pop up.

Edit: Ah crapā€¦ is this because a plug in need to be visible on load or whatever that stupid bubble rule is? Please say it ainā€™t so. I really need a map in a pop up. The second time I run the workflow, it will throw the same error, but the map will show up. sooo, thereā€™s that.

Display the pop up then use the show Leafy map workflow.

1 Like

Yeah, thatā€™s what Iā€™m doing. Is that working for you? @nocodeventure