Help with Zerocodes GEOFence plugin

Hi collective, looking for a little help, happy where it come from (the general question might get answered faster than the zerocodes helpline - due to timezones) as I’m sure this is something obvious (to you) that I’m missing.

I’ve configured the plugin to see if if can detect a pointer (for the timbeing) as being inside a given shape - for this test I’ve used the shape on the demo for simplicity.

anyway my setup is as follows…

I have a series of polygon coordinates…

4.891434574979996,52.37947315053009,4.888767264245104,52.37717445011447,4.88594305287873,52.37286406430607,4.886099953510978,52.369463351978965,4.887668959825163,52.366828817386335,4.892611329715152,52.36476898089961,4.898259752447785,52.364673172214026,4.902888321075011,52.365727056328694,4.903829724863471,52.36869695812132,4.906497035598335,52.36994234138774,4.909556597911376,52.371379278450405,4.908772094754312,52.37267248183912,4.903751274548171,52.37554613158733,4.9017900166550135,52.377078668333695,4.898965805288782,52.37659975631354,4.897239898343173,52.37803647679294,4.894807938555829,52.37966470349667,4.892925130978028,52.38095766428634,4.890022469296412,52.38220270185593,4.888296562350831,52.380526681563026,4.891434574979996,52.37947315053009

that are stored in my database. at the moment this is a single polygon.

I have then plotted these onto my Mapbox map to ensure that it is indeed a polygon with a workflow action and also a Mapbox element.

this is producing the map on the screen correctly…

I’ve also used the workflow to drop a pin and as you can see from the screenshot above the coordinates for the dropped pin are being captured.

image

my Geofence element has the following configuration…

no matter where I drop the pin on the map or if I hardcode the coordinates into the workflow and the geofence the pin state is not being recorded, I’m not sure how to see if the state is being set or how to interrogate the setting of the pin as it’s not a workflow as such.

I have a text based field that is checking with conditions…

can anyone give me some guidance on what I’m missing as I’m sure I’ve replicated everything from the demo correctly.

1 Like

Hello @robbie.macintosh,

Thank you for your message.

We’ve also posted a response in our forum to ensure you receive our reply promptly, but I’ll provide an answer here as well. :raised_hands:

Regarding your question, there is an element state “is Inside” that you can use to determine when the marker is inside the provided polygon (image). However, please ensure that the Geofence element is not hidden.

Additionally, we’ve created a test page (link) using the coordinates you provided. This allows you to see how it functions and to compare it with your setup.

Concerning the error, if it continues, could you please provide more detailed information? We would appreciate screenshots or screen recordings of the workflow involved in adding a Marker and Polygon to the map. A step-by-step video from the moment you open the map until you encounter the issue would also be very helpful. Please examine each action carefully to determine exactly what is happening.

Please also let us know about the device and browser you are using. Is the error occurring on other devices as well?

Thank you once again. We look forward to your reply.

Best regards,
Zeroqode Support Team

Hi there,

I’ve also put some screenshots into the forum, was unable to add the video…

The errors is being thrown up when the element is set to ‘polyogn’, however I’ve checked the polygon coordinates and can confirm they are good as they display on the mapbox map and a manual check has the first and the last coordinates as the same (so a closed loop)…

I also removed the existing element from the page and added a new one…

The error is being presented when we change the geofencing type to polygon and irrespective if the location to watch or raw coordinates is checked….

image001.png

Hi guys,

I’ve checked my settings for the GEOFence element and your and can’t see any difference,

I’ve copied yours into my app but due to it being the ‘testing plugin’ I’m getting an pluging not installed message.

Hi Stefan,

I’ve continued my investigations and found something interesting but strange…

I’ve put all the elements into a group on the page and then copied with workflows to a new page and it works ON SOME PAGES.

On 2 of the 3 pages I’ve copied the group throws up the error.

Happy to screen share if that helps to disgnose the problem as it’s a strange one?

I have now tried the pages in Chrome and get the same issue, but a more informed error message

The plugin Geofence #MapLocationTriggerLive / element Geofence threw the following error: TypeError: _0x241a71[_0x4cd633(…)] is not a function at c (PLUGIN_1640161444196x288791162037207040/Geofence–MapLocationTriggerLive-update–Geofence-.js:3:7716) at g (PLUGIN_1640161444196x288791162037207040/Geofence–MapLocationTriggerLive-update–Geofence-.js:3:8413) (please report this to the plugin author)

Hello @robbie.macintosh ,

Thank you for the message.

We’ve posted this message on both forums to ensure you receive it, but please, let’s continue our conversation on just one to keep things streamlined. :pray:

Could you please confirm whether you’ve accessed the test page we provided earlier and if everything is functioning correctly? If you plan to replicate the page, remember to replace the plugin element with your own via the element’s tab and modify the workflow accordingly.

For video recordings, consider using a tool like Loom [link] and share the link with us. Alternatively, if you prefer you can send it directly to support@zeroqode.com.

We appreciate your cooperation and look forward to your response.

Best regards,
Zeroqode Support Team

This topic was automatically closed after 70 days. New replies are no longer allowed.