Services Plugins FAQs

Struggling with Map Extender

Ok… So I have been back and for on this for quite a while and I have been getting the error “The plugin Bubble’s Google Map Extender / action Add Directions a Map Extender threw the following error: Cannot read property ‘setOptions’ of null”

What I am attempting to do: all I need is for the map to log and route two locations (an originating point, and destination point)

Here are some snippets of what is going on



Whenever I hit the button to log the route on the demo app this happens

Hello, @trevorjgormley.

I have replicated your scenario and it seems that the plugins works fine. However due to usage of 2 plugins on page which are delimited by Element ID’s attributes I added to the scenario, a Google Map element ID on purpose, everything else tho is the same config from your set-up.
Here’s the demo page set-up: https://zeroqode-demo-12.bubbleapps.io/version-test/map_extender
Please take a look and replicate it for the case.

Here’s a screenshot of the result I’m getting.

Hope this helps. Let’s us know if it worked for you.

Regards,
Zeroqode Team.

Not 100% sure i understand what exactly you changed… I did notice that my “map” does not showcase at the bottom the ability to tag it with an element attribute…
Is there any way you could make an open copy of the example above?

Hello.

Yes, I talked about the Element ID which is assigned to respective map. Here you could see the workflow set-up in the editor: https://bubble.is/page?type=page&name=map_extender&id=zeroqode-demo-12&tab=tabs-1
Let us know, if this worked for you. Also you could try uninstalling and reinstalling the plugin, refresh the app and give another try.

Regards,
Zeroqode Team.

Thanks I actually didnt have the element ID selected in the Bubble settings

Hi Trevor
For instructions how to set the ID attribute to a Bubble element please visit this forum thread How to add ID attribute to HTML elements

1 Like