Services Plugins FAQs

Mapbox Map Plugin and Displaying JEOJson in repeating group

I’m using the Mapbox plugin elsewhere in my app with good effect, the ability to put a GEOJson onto the map with a workflow is nice and simple.

I’m now trying to put a small Mapbox map into a repeating group and when a user enters a postcode or similar outside of the repeating group, the search then returns the list of groups within the repeating group and a small map is displayed that contains the geojson for the group, the user can then zoom in/out to see just how close their point of interest is to the map geojson.

I can’t see how to populate the Mapbox map while it’s in the repeating group with the current cells GEOJson data.

is this possible and if so how?

thanks

Hello @robbie.macintosh,

Thank you for your message and for sharing your use-case.

It’s great to hear that the plugin is proving useful and that you’re enjoying it. Regarding your query about using Mapbox Maps in RG, I’ve set up a test page zeroqode-demo-08 | Bubble Editor where you can see how to use specific actions with a Mapbox element situated in RG. There are three buttons that perform different actions only for the Mapbox element in the cell.

Could you please try it out and let us know if it is what you are looking for? If not, could you please provide more details about how you envision this working?

Thank you once again and I look forward to your reply.

Best regards,
Stefan

Hello @robbie.macintosh,

I hope you’re doing well.

I wanted to check in and see how things are going with the Mapbox Maps in RG. Have you had a chance to check the demo page try it out yet? If you have any feedback or need further assistance, please don’t hesitate to let me know.

Looking forward to hearing from you.

Best regards,
Stefan

Hi Stephan,

Apologies for the delay, I’ve been doing some other (related activity)…

I’ve just tried the plugin with the new version and a known good polygon shape (That works using the old methodology). and the marker is not being recognised as being inside of the shape(s). the drawn shape on the screen is using the GEOJson field in the database and I’ve reconfigured the geofence element to also look into that field for the GEOJson with no luck. I then took the contents of that cell in the database and pasted it directly into the element field, again with no luck in being able to recognise the point inside the drawn shape( from the same field)

I’ve pasted the GEOJson that you can test with if you like…

Happy to do some troubleshooting if needs…

{“type”: “FeatureCollection”,“features”: [{ “type”: “Feature”, “properties”: { “geo_point_2d”: { “lon”: 2.551955216777798, “lat”: 46.5645020539879 }, “iso3”: “FRA”, “status”: “Member State”, “color_code”: “FRA”, “name”: “France”, “continent”: “Europe”, “region”: “Western Europe”, “iso_3166_1_alpha_2_codes”: “FR”, “french_short”: “France” }, “geometry”: { “type”: “MultiPolygon”, “coordinates”: [ [ [ [ 9.4475, 42.68305 ], [ 9.45014, 42.63985 ], [ 9.47597, 42.57917 ], [ 9.50833, 42.57044 ], [ 9.49597, 42.60222 ], [ 9.48028, 42.61514 ], [ 9.46153, 42.63708 ], [ 9.48583, 42.61527 ], [ 9.50028, 42.59861 ], [ 9.52028, 42.57249 ], [ 9.53278, 42.54555 ], [ 9.56222, 42.27277 ], [ 9.56, 42.19222 ], [ 9.55257, 42.11833 ], [ 9.44806, 41.99944 ], [ 9.42555, 41.975 ], [ 9.40833, 41.94458 ], [ 9.39693, 41.86935 ], [ 9.40055, 41.84555 ], [ 9.4043, 41.82375 ], [ 9.39889, 41.69888 ], [ 9.37792, 41.65208 ], [ 9.32055, 41.6025 ], [ 9.27167, 41.52056 ], [ 9.24194, 41.45194 ], [ 9.25111, 41.42121 ], [ 9.21965, 41.36729 ], [ 9.18257, 41.36492 ], [ 9.13222, 41.39417 ], [ 9.11583, 41.43194 ], [ 8.97597, 41.47736 ], [ 8.94111, 41.48944 ], [ 8.9175, 41.49972 ], [ 8.79041, 41.55784 ], [ 8.78555, 41.61332 ], [ 8.80698, 41.63389 ], [ 8.87514, 41.64805 ], [ 8.91712, 41.68569 ], [ 8.87889, 41.69805 ], [ 8.85118, 41.69895 ], [ 8.79694, 41.71027 ], [ 8.72583, 41.72944 ], [ 8.705, 41.75944 ], [ 8.74778, 41.81056 ], [ 8.78889, 41.85333 ], [ 8.80236, 41.90041 ], [ 8.78062, 41.92638 ], [ 8.74187, 41.92944 ], [ 8.71222, 41.91166 ], [ 8.66861, 41.90833 ], [ 8.62722, 41.90666 ], [ 8.59097, 41.96353 ], [ 8.61361, 41.97083 ], [ 8.64055, 41.96875 ], [ 8.66639, 41.98465 ], [ 8.65944, 42.00833 ], [ 8.74319, 42.04937 ], [ 8.68111, 42.10638 ], [ 8.63889, 42.12028 ], [ 8.60833, 42.13278 ], [ 8.58722, 42.16971 ], [ 8.57055, 42.22166 ], [ 8.61833, 42.25305 ], [ 8.64889, 42.25833 ], [ 8.68455, 42.26881 ], [ 8.63167, 42.33694 ], [ 8.61153, 42.34972 ], [ 8.58944, 42.35069 ], [ 8.57583, 42.38361 ], [ 8.66528, 42.51111 ], [ 8.71819, 42.57055 ], [ 8.88694, 42.62805 ], [ 9.05743, 42.68403 ], [ 9.08555, 42.71194 ], [ 9.11764, 42.72944 ], [ 9.15083, 42.73333 ], [ 9.25319, 42.71986 ], [ 9.27389, 42.69638 ], [ 9.28889, 42.67499 ], [ 9.31479, 42.69354 ], [ 9.34201, 42.73819 ], [ 9.33632, 42.7977 ], [ 9.31257, 42.8293 ], [ 9.3468, 43.00041 ], [ 9.38333, 43.0086 ], [ 9.42125, 43.01041 ], [ 9.45958, 42.98805 ], [ 9.4884, 42.80701 ], [ 9.4675, 42.76555 ], [ 9.455, 42.71861 ], [ 9.4475, 42.68305 ] ] ], [ [ [ -1.19118, 45.82617 ], [ -1.21194, 45.80694 ], [ -1.23972, 45.85888 ], [ -1.25083, 45.8736 ], [ -1.28403, 45.90666 ], [ -1.31667, 45.92361 ], [ -1.33917, 45.93583 ], [ -1.36556, 45.95027 ], [ -1.37486, 45.96166 ], [ -1.39924, 46.04986 ], [ -1.38472, 46.04944 ], [ -1.36139, 46.04388 ], [ -1.27333, 45.99583 ], [ -1.23306, 45.96472 ], [ -1.17125, 45.89132 ], [ -1.18195, 45.84777 ], [ -1.19118, 45.82617 ] ] ], [ [ [ -1.25799, 46.15968 ], [ -1.28417, 46.15555 ], [ -1.29944, 46.15666 ], [ -1.31861, 46.16083 ], [ -1.50694, 46.20416 ], [ -1.52056, 46.20916 ], [ -1.53292, 46.21652 ], [ -1.55139, 46.24604 ], [ -1.50306, 46.25555 ], [ -1.49222, 46.25666 ], [ -1.47736, 46.25625 ], [ -1.29167, 46.19805 ], [ -1.25799, 46.15968 ] ] ], [ [ [ -3.06361, 47.31444 ], [ -3.08167, 47.28944 ], [ -3.08583, 47.28777 ], [ -3.10833, 47.29555 ], [ -3.11833, 47.29805 ], [ -3.16681, 47.30347 ], [ -3.18889, 47.30277 ], [ -3.20819, 47.30055 ], [ -3.21944, 47.30458 ], [ -3.23833, 47.31694 ], [ -3.25958, 47.37173 ], [ -3.24694, 47.39166 ], [ -3.06361, 47.31444 ] ] ], [ [ [ -3.57667, 48.80389 ], [ -3.58222, 48.80389 ], [ -3.58278, 48.80722 ], [ -3.57972, 48.80972 ], [ -3.57556, 48.81249 ], [ -3.57083, 48.81278 ], [ -3.56528, 48.81166 ], [ -3.56333, 48.80861 ], [ -3.56611, 48.80583 ], [ -3.57667, 48.80389 ] ] ], [ [ [ 2.54167, 51.09111 ], [ 2.5975, 50.99583 ], [ 2.59778, 50.92583 ], [ 2.65056, 50.81611 ], [ 2.78194, 50.75555 ], [ 2.8675, 50.71338 ], [ 2.89806, 50.70305 ], [ 2.94306, 50.74138 ], [ 2.96056, 50.7575 ], [ 3.01431, 50.76986 ], [ 3.02699, 50.76984 ], [ 3.04625, 50.77875 ], [ 3.11639, 50.79166 ], [ 3.15858, 50.78437 ], [ 3.18287, 50.75705 ], [ 3.18722, 50.74667 ], [ 3.19778, 50.72722 ], [ 3.24264, 50.66416 ], [ 3.27931, 50.54 ], [ 3.29708, 50.5243 ], [ 3.37, 50.49528 ], [ 3.45458, 50.51041 ], [ 3.51806, 50.51888 ], [ 3.61397, 50.49294 ], [ 3.6604, 50.45527 ], [ 3.67111, 50.43708 ], [ 3.67695, 50.39527 ], [ 3.77472, 50.35388 ], [ 3.88972, 50.34 ], [ 3.98389, 50.34527 ], [ 4.03576, 50.35599 ], [ 4.165, 50.28305 ], [ 4.19444, 50.2375 ], [ 4.17139, 50.13721 ], [ 4.14722, 50.01 ], [ 4.14924, 49.97837 ], [ 4.17862, 49.97813 ], [ 4.21526, 49.9596 ], [ 4.23958, 49.96347 ], [ 4.31722, 49.96972 ], [ 4.41333, 49.94917 ], [ 4.43001, 49.94501 ], [ 4.45812, 49.93923 ], [ 4.51056, 49.9475 ], [ 4.67667, 49.99916 ], [ 4.6934, 50.05666 ], [ 4.69375, 50.08402 ], [ 4.76305, 50.13555 ], [ 4.82472, 50.16757 ], [ 4.8859, 50.13416 ], [ 4.85333, 50.09555 ], [ 4.83889, 50.06916 ], [ 4.82083, 49.99278 ], [ 4.86847, 49.80222 ], [ 4.90972, 49.7893 ], [ 4.93729, 49.79187 ], [ 4.95917, 49.80222 ], [ 4.99055, 49.80361 ], [ 5.33111, 49.65666 ], [ 5.39231, 49.62255 ], [ 5.40681, 49.61736 ], [ 5.4325, 49.60347 ], [ 5.47493, 49.5359 ], [ 5.47278, 49.50888 ], [ 5.5225, 49.51 ], [ 5.59333, 49.52638 ], [ 5.63194, 49.53583 ], [ 5.70222, 49.54305 ], [ 5.79222, 49.54583 ], [ 5.80788, 49.54504 ], [ 5.81083, 49.53764 ], [ 5.83861, 49.51416 ], [ 5.85528, 49.50111 ], [ 5.97958, 49.44847 ], [ 6.0925, 49.45361 ], [ 6.12024, 49.476 ], [ 6.16069, 49.5043 ], [ 6.23472, 49.50805 ], [ 6.24732, 49.50597 ], [ 6.30278, 49.47666 ], [ 6.32833, 49.46916 ], [ 6.36217, 49.45939 ], [ 6.41375, 49.47569 ], [ 6.46833, 49.46139 ], [ 6.50833, 49.44277 ], [ 6.54125, 49.42389 ], [ 6.59472, 49.36305 ], [ 6.68694, 49.24499 ], [ 6.71507, 49.18729 ], [ 6.72924, 49.16763 ], [ 6.8341, 49.15507 ], [ 6.85635, 49.18176 ], [ 6.84608, 49.21204 ], [ 6.92986, 49.2202 ], [ 7.01944, 49.18749 ], [ 7.09056, 49.1275 ], [ 7.15167, 49.12111 ], [ 7.28972, 49.11166 ], [ 7.36403, 49.15194 ], [ 7.36901, 49.16878 ], [ 7.37861, 49.17236 ], [ 7.42556, 49.17645 ], [ 7.48694, 49.16416 ], [ 7.62806, 49.06722 ], [ 7.65209, 49.04493 ], [ 7.66889, 49.04222 ], [ 7.7375, 49.04277 ], [ 7.82139, 49.04639 ], [ 7.93597, 49.04888 ], [ 8.04583, 49.00819 ], [ 8.15555, 48.97639 ], [ 8.22608, 48.96442 ], [ 8.19833, 48.95541 ], [ 8.1375, 48.89319 ], [ 8.12167, 48.865 ], [ 8.11139, 48.8436 ], [ 8.10514, 48.81944 ], [ 8.09222, 48.8036 ], [ 7.96194, 48.72416 ], [ 7.88, 48.66416 ], [ 7.80222, 48.57583 ], [ 7.7454, 48.42495 ], [ 7.73667, 48.39403 ], [ 7.74306, 48.37111 ], [ 7.74871, 48.33579 ], [ 7.69333, 48.27639 ], [ 7.60773, 48.16419 ], [ 7.57838, 48.1172 ], [ 7.5693, 48.08722 ], [ 7.57049, 48.0441 ], [ 7.58389, 48.02722 ], [ 7.61977, 47.99652 ], [ 7.62319, 47.97305 ], [ 7.58417, 47.90333 ], [ 7.55722, 47.86278 ], [ 7.52667, 47.78805 ], [ 7.51208, 47.69514 ], [ 7.52764, 47.66242 ], [ 7.56417, 47.63916 ], [ 7.58876, 47.59892 ], [ 7.58827, 47.58448 ], [ 7.57708, 47.5843 ], [ 7.55403, 47.57888 ], [ 7.54667, 47.56555 ], [ 7.52167, 47.55971 ], [ 7.50257, 47.54993 ], [ 7.50222, 47.50055 ], [ 7.49694, 47.49499 ], [ 7.45278, 47.46999 ], [ 7.43305, 47.46055 ], [ 7.41555, 47.44528 ], [ 7.38542, 47.43333 ], [ 7.35806, 47.43361 ], [ 7.3559, 47.43402 ], [ 7.34028, 47.43902 ], [ 7.30833, 47.44028 ], [ 7.27555, 47.43249 ], [ 7.24771, 47.42166 ], [ 7.18292, 47.44402 ], [ 7.14642, 47.49905 ], [ 7.025, 47.50805 ], [ 6.99056, 47.49722 ], [ 6.88167, 47.36368 ], [ 6.93139, 47.35889 ], [ 6.98083, 47.36166 ], [ 7.00083, 47.365 ], [ 6.97167, 47.29194 ], [ 6.83896, 47.17152 ], [ 6.84972, 47.16499 ], [ 6.79333, 47.13083 ], [ 6.69944, 47.06389 ], [ 6.67833, 47.03416 ], [ 6.6325, 47.0 ], [ 6.56639, 46.98 ], [ 6.52833, 46.97167 ], [ 6.46028, 46.89583 ], [ 6.44694, 46.83944 ], [ 6.45687, 46.78145 ], [ 6.435, 46.75805 ], [ 6.35875, 46.71673 ], [ 6.26917, 46.68278 ], [ 6.12868, 46.58805 ], [ 6.13528, 46.53972 ], [ 6.08694, 46.44944 ], [ 6.07111, 46.42638 ], [ 6.11111, 46.40972 ], [ 6.15354, 46.37927 ], [ 6.11764, 46.30875 ], [ 6.10611, 46.29749 ], [ 6.11556, 46.26152 ], [ 6.07458, 46.2484 ], [ 6.03, 46.24139 ], [ 6.00917, 46.23389 ], [ 5.98139, 46.22194 ], [ 5.96701, 46.20729 ], [ 5.99639, 46.14694 ], [ 6.13326, 46.14978 ], [ 6.1875, 46.17208 ], [ 6.24555, 46.21833 ], [ 6.27195, 46.26194 ], [ 6.24375, 46.31551 ], [ 6.23, 46.3302 ], [ 6.24486, 46.35639 ], [ 6.29556, 46.39416 ], [ 6.31972, 46.40416 ], [ 6.49194, 46.45305 ], [ 6.51514, 46.45846 ], [ 6.63361, 46.46417 ], [ 6.70278, 46.45472 ], [ 6.73778, 46.44749 ], [ 6.79833, 46.42861 ], [ 6.80702, 46.40423 ], [ 6.8, 46.37832 ], [ 6.78347, 46.15472 ], [ 6.87389, 46.08805 ], [ 6.93305, 46.05527 ], [ 7.00722, 45.99806 ], [ 7.03055, 45.96194 ], [ 7.03805, 45.93194 ], [ 6.98451, 45.8759 ], [ 6.94389, 45.85833 ], [ 6.92222, 45.85222 ], [ 6.90208, 45.84986 ], [ 6.87236, 45.85597 ], [ 6.81333, 45.83423 ], [ 6.79935, 45.78866 ], [ 6.80986, 45.72965 ], [ 6.96944, 45.59694 ], [ 6.99542, 45.52527 ], [ 7.08916, 45.47686 ], [ 7.14694, 45.43055 ], [ 7.15861, 45.3775 ], [ 7.12778, 45.2593 ], [ 7.06472, 45.22305 ], [ 6.93944, 45.17944 ], [ 6.82167, 45.15305 ], [ 6.76639, 45.16819 ], [ 6.68993, 45.14805 ], [ 6.63778, 45.1261 ], [ 6.63412, 45.124 ], [ 6.62397, 45.11572 ], [ 6.66167, 45.03999 ], [ 6.74903, 44.91833 ], [ 6.77528, 44.90555 ], [ 6.84931, 44.87041 ], [ 6.90167, 44.86041 ], [ 6.94236, 44.87069 ], [ 6.96917, 44.86431 ], [ 7.00639, 44.85069 ], [ 7.03167, 44.83138 ], [ 7.02833, 44.74472 ], [ 6.97542, 44.68819 ], [ 6.95083, 44.66472 ], [ 6.85278, 44.54083 ], [ 6.85361, 44.51778 ], [ 6.87792, 44.37513 ], [ 6.97639, 44.28417 ], [ 7.03139, 44.24694 ], [ 7.35083, 44.13152 ], [ 7.42097, 44.12611 ], [ 7.46639, 44.13861 ], [ 7.52028, 44.15611 ], [ 7.61472, 44.18027 ], [ 7.66222, 44.17083 ], [ 7.66167, 44.13395 ], [ 7.70905, 44.09131 ], [ 7.70625, 44.07583 ], [ 7.65861, 44.0068 ], [ 7.59833, 43.96472 ], [ 7.49621, 43.87451 ], [ 7.5125, 43.82111 ], [ 7.53193, 43.78204 ], [ 7.51583, 43.79097 ], [ 7.48417, 43.78277 ], [ 7.43929, 43.75752 ], [ 7.42899, 43.7683 ], [ 7.3909, 43.74937 ], [ 7.39161, 43.72755 ], [ 7.31861, 43.70972 ], [ 7.24681, 43.70166 ], [ 7.15569, 43.66055 ], [ 7.07472, 43.57222 ], [ 6.88819, 43.43458 ], [ 6.84639, 43.42416 ], [ 6.79417, 43.42278 ], [ 6.63639, 43.3111 ], [ 6.6375, 43.28777 ], [ 6.69576, 43.27607 ], [ 6.64167, 43.185 ], [ 6.59944, 43.1925 ], [ 6.5275, 43.18916 ], [ 6.40611, 43.16306 ], [ 6.16976, 43.11534 ], [ 6.15722, 43.06721 ], [ 6.16528, 43.05055 ], [ 6.13778, 43.05583 ], [ 6.11555, 43.06444 ], [ 6.06222, 43.10139 ], [ 5.95555, 43.11833 ], [ 5.93333, 43.08631 ], [ 5.86681, 43.05861 ], [ 5.83389, 43.06153 ], [ 5.78257, 43.09871 ], [ 5.81653, 43.11764 ], [ 5.67847, 43.19049 ], [ 5.52, 43.21 ], [ 5.40694, 43.21722 ], [ 5.36292, 43.22465 ], [ 5.35868, 43.24874 ], [ 5.37347, 43.27173 ], [ 5.36278, 43.3318 ], [ 5.34208, 43.35666 ], [ 5.31278, 43.36631 ], [ 5.25764, 43.34882 ], [ 5.21805, 43.33902 ], [ 5.09639, 43.33694 ], [ 5.03958, 43.34791 ], [ 5.04807, 43.39133 ], [ 5.08428, 43.4037 ], [ 5.1468, 43.41666 ], [ 5.18861, 43.43389 ], [ 5.23153, 43.46583 ], [ 5.22903, 43.49319 ], [ 5.02417, 43.55263 ], [ 5.01028, 43.51444 ], [ 5.02819, 43.48409 ], [ 5.055, 43.47416 ], [ 5.03912, 43.44312 ], [ 5.01739, 43.42827 ], [ 4.99085, 43.42723 ], [ 4.95778, 43.425 ], [ 4.92472, 43.43479 ], [ 4.87611, 43.42388 ], [ 4.85361, 43.41333 ], [ 4.83516, 43.40034 ], [ 4.81506, 43.39922 ], [ 4.78864, 43.41188 ], [ 4.74292, 43.44145 ], [ 4.75042, 43.49111 ], [ 4.7466, 43.52187 ], [ 4.7075, 43.57208 ], [ 4.73444, 43.42742 ], [ 4.73672, 43.39811 ], [ 4.75896, 43.37415 ], [ 4.65278, 43.35972 ], [ 4.61306, 43.36152 ], [ 4.59264, 43.36652 ], [ 4.57368, 43.38749 ], [ 4.59611, 43.42815 ], [ 4.57472, 43.44666 ], [ 4.53555, 43.45833 ], [ 4.50611, 43.46278 ], [ 4.47389, 43.46194 ], [ 4.44625, 43.45972 ], [ 4.42194, 43.45389 ], [ 4.31889, 43.466 ], [ 4.31687, 43.50208 ], [ 4.28611, 43.50556 ], [ 4.24931, 43.49292 ], [ 4.24143, 43.48596 ], [ 4.28986, 43.45805 ], [ 4.19778, 43.46111 ], [ 4.16222, 43.47111 ], [ 4.13233, 43.5085 ], [ 4.13042, 43.53986 ], [ 4.10451, 43.55562 ], [ 4.05625, 43.56278 ], [ 3.96472, 43.54083 ], [ 3.91319, 43.52125 ], [ 3.84361, 43.47556 ], [ 3.7225, 43.41166 ], [ 3.54667, 43.31972 ], [ 3.4141, 43.28722 ], [ 3.335, 43.26527 ], [ 3.31306, 43.25527 ], [ 3.25806, 43.22749 ], [ 3.14111, 43.13888 ], [ 3.08139, 43.06944 ], [ 3.07778, 43.04138 ], [ 3.04528, 42.95416 ], [ 3.00361, 42.8811 ], [ 2.96132, 42.84222 ], [ 2.97278, 42.81222 ], [ 2.97917, 42.80666 ], [ 3.01222, 42.79805 ], [ 3.03806, 42.72833 ], [ 3.04139, 42.61264 ], [ 3.05812, 42.54417 ], [ 3.11028, 42.52631 ], [ 3.14139, 42.51778 ], [ 3.16, 42.47833 ], [ 3.17444, 42.44555 ], [ 3.17765, 42.4368 ], [ 3.16472, 42.43444 ], [ 3.10611, 42.42916 ], [ 3.08403, 42.43472 ], [ 3.04799, 42.46597 ], [ 2.95, 42.48055 ], [ 2.72472, 42.41944 ], [ 2.67833, 42.40166 ], [ 2.65708, 42.38194 ], [ 2.67042, 42.34958 ], [ 2.53389, 42.33291 ], [ 2.47722, 42.34819 ], [ 2.44083, 42.37847 ], [ 2.33222, 42.41805 ], [ 2.27318, 42.43561 ], [ 2.14458, 42.4193 ], [ 2.12333, 42.39576 ], [ 2.09361, 42.36417 ], [ 2.06222, 42.35694 ], [ 2.02056, 42.35263 ], [ 1.99625, 42.3625 ], [ 1.97278, 42.37944 ], [ 1.95917, 42.41083 ], [ 1.90639, 42.44694 ], [ 1.85139, 42.46999 ], [ 1.78, 42.48833 ], [ 1.72361, 42.50944 ], [ 1.7241, 42.52139 ], [ 1.74187, 42.56062 ], [ 1.77139, 42.57111 ], [ 1.78172, 42.56996 ], [ 1.73861, 42.61638 ], [ 1.69833, 42.6261 ], [ 1.55972, 42.65597 ], [ 1.48653, 42.65041 ], [ 1.44583, 42.60194 ], [ 1.41722, 42.65083 ], [ 1.39028, 42.68833 ], [ 1.35917, 42.71527 ], [ 1.325, 42.71749 ], [ 1.17389, 42.70972 ], [ 1.14382, 42.73329 ], [ 1.12667, 42.76471 ], [ 1.08833, 42.78486 ], [ 0.89694, 42.81305 ], [ 0.82361, 42.83305 ], [ 0.71611, 42.85888 ], [ 0.69278, 42.85361 ], [ 0.66778, 42.83916 ], [ 0.65194, 42.785 ], [ 0.66181, 42.75111 ], [ 0.68264, 42.72124 ], [ 0.68153, 42.70069 ], [ 0.67551, 42.68849 ], [ 0.66167, 42.69194 ], [ 0.59556, 42.695 ], [ 0.56, 42.69583 ], [ 0.50542, 42.69166 ], [ 0.43278, 42.68666 ], [ 0.26917, 42.70756 ], [ 0.1809, 42.73451 ], [ 0.14417, 42.72222 ], [ 0.11195, 42.70944 ], [ 0.00278, 42.68608 ], [ -0.05792, 42.69979 ], [ -0.12361, 42.7575 ], [ -0.15194, 42.77666 ], [ -0.18, 42.78444 ], [ -0.20555, 42.79417 ], [ -0.2625, 42.8175 ], [ -0.30319, 42.8418 ], [ -0.30874, 42.84838 ], [ -0.31785, 42.83236 ], [ -0.39194, 42.79639 ], [ -0.55583, 42.78 ], [ -0.71583, 42.88458 ], [ -0.73063, 42.90104 ], [ -0.72332, 42.91894 ], [ -0.72347, 42.92985 ], [ -0.7541, 42.96437 ], [ -0.78875, 42.95472 ], [ -0.81861, 42.94611 ], [ -0.94028, 42.95416 ], [ -0.99361, 42.97611 ], [ -1.07278, 43.00639 ], [ -1.20056, 43.04583 ], [ -1.30028, 43.07166 ], [ -1.34826, 43.03618 ], [ -1.39806, 43.03806 ], [ -1.43951, 43.04937 ], [ -1.46674, 43.09205 ], [ -1.42313, 43.12326 ], [ -1.38389, 43.20972 ], [ -1.38514, 43.25256 ], [ -1.40889, 43.27305 ], [ -1.50361, 43.28777 ], [ -1.65556, 43.30944 ], [ -1.70208, 43.30597 ], [ -1.73038, 43.29898 ], [ -1.77694, 43.3425 ], [ -1.78088, 43.35992 ], [ -1.73, 43.37889 ], [ -1.66694, 43.38527 ], [ -1.59014, 43.43764 ], [ -1.53, 43.5125 ], [ -1.48667, 43.57055 ], [ -1.44389, 43.64055 ], [ -1.4425, 43.66555 ], [ -1.44028, 43.69138 ], [ -1.42472, 43.78472 ], [ -1.34444, 44.0618 ], [ -1.32896, 44.09104 ], [ -1.305, 44.19555 ], [ -1.26417, 44.39333 ], [ -1.25861, 44.45222 ], [ -1.24969, 44.51027 ], [ -1.23378, 44.55811 ], [ -1.20861, 44.62583 ], [ -1.15139, 44.65708 ], [ -1.12611, 44.65111 ], [ -1.09, 44.65374 ], [ -1.04063, 44.67493 ], [ -1.05986, 44.71083 ], [ -1.12778, 44.7593 ], [ -1.17014, 44.77388 ], [ -1.22986, 44.70638 ], [ -1.24583, 44.67534 ], [ -1.2475, 44.75777 ], [ -1.20722, 45.01333 ], [ -1.16833, 45.20861 ], [ -1.15194, 45.37138 ], [ -1.15222, 45.39222 ], [ -1.14861, 45.4275 ], [ -1.14, 45.49388 ], [ -1.08944, 45.55861 ], [ -1.0641, 45.56916 ], [ -1.05417, 45.55055 ], [ -1.05632, 45.52264 ], [ -0.99542, 45.47722 ], [ -0.97722, 45.46875 ], [ -0.94208, 45.4618 ], [ -0.91889, 45.45014 ], [ -0.80132, 45.3609 ], [ -0.77111, 45.32194 ], [ -0.75917, 45.30444 ], [ -0.73432, 45.22525 ], [ -0.73061, 45.19133 ], [ -0.71472, 45.13056 ], [ -0.70292, 45.105 ], [ -0.53993, 44.89562 ], [ -0.54042, 44.98694 ], [ -0.55417, 45.02333 ], [ -0.61236, 45.0561 ], [ -0.63806, 45.07486 ], [ -0.65167, 45.09208 ], [ -0.67069, 45.13111 ], [ -0.70604, 45.32205 ], [ -0.71778, 45.35721 ], [ -0.74778, 45.42319 ], [ -0.78153, 45.46652 ], [ -0.80361, 45.48722 ], [ -0.8625, 45.52888 ], [ -1.00028, 45.61444 ], [ -1.08569, 45.65749 ], [ -1.16583, 45.68749 ], [ -1.23886, 45.70622 ], [ -1.22903, 45.78791 ], [ -1.18891, 45.79989 ], [ -1.14594, 45.80294 ], [ -1.14806, 45.86778 ], [ -1.07097, 45.90395 ], [ -1.05333, 46.01222 ], [ -1.05243, 46.0386 ], [ -1.12, 46.12583 ], [ -1.14861, 46.15333 ], [ -1.10583, 46.25861 ], [ -1.11463, 46.31658 ], [ -1.16896, 46.32639 ], [ -1.20632, 46.31472 ], [ -1.21778, 46.29763 ], [ -1.26583, 46.30499 ], [ -1.46972, 46.39278 ], [ -1.6543, 46.44536 ], [ -1.78639, 46.48833 ], [ -1.82472, 46.575 ], [ -1.86056, 46.63777 ], [ -1.91681, 46.6911 ], [ -2.00722, 46.76166 ], [ -2.03333, 46.77638 ], [ -2.05889, 46.78694 ], [ -2.08278, 46.79861 ], [ -2.10472, 46.81139 ], [ -2.12542, 46.83097 ], [ -2.13333, 46.84972 ], [ -2.12819, 46.89951 ], [ -2.08778, 46.94167 ], [ -2.03472, 46.98167 ], [ -1.98587, 47.03693 ], [ -2.00431, 47.06319 ], [ -2.02417, 47.07916 ], [ -2.06389, 47.10208 ], [ -2.11264, 47.11777 ], [ -2.17083, 47.12667 ], [ -2.15929, 47.23715 ], [ -2.13417, 47.27805 ], [ -2.04361, 47.28722 ], [ -1.99889, 47.28222 ], [ -1.93833, 47.27416 ], [ -1.91903, 47.26805 ], [ -1.8975, 47.25152 ], [ -1.8025, 47.21193 ], [ -1.77306, 47.20805 ], [ -1.735, 47.20868 ], [ -1.89042, 47.28875 ], [ -1.92139, 47.29778 ], [ -2.01278, 47.31985 ], [ -2.03417, 47.32027 ], [ -2.12944, 47.30971 ], [ -2.19114, 47.28002 ], [ -2.28125, 47.24027 ], [ -2.43361, 47.2625 ], [ -2.48028, 47.27722 ], [ -2.53965, 47.29806 ], [ -2.5275, 47.38611 ], [ -2.47319, 47.41528 ], [ -2.44403, 47.40611 ], [ -2.40847, 47.41527 ], [ -2.4596, 47.45299 ], [ -2.48267, 47.45044 ], [ -2.48347, 47.49757 ], [ -2.42278, 47.49944 ], [ -2.36708, 47.50153 ], [ -2.38833, 47.51028 ], [ -2.50944, 47.52916 ], [ -2.58083, 47.53777 ], [ -2.66361, 47.51277 ], [ -2.79306, 47.48888 ], [ -2.83188, 47.49728 ], [ -2.86176, 47.54646 ], [ -2.81078, 47.54494 ], [ -2.77528, 47.54722 ], [ -2.73938, 47.54472 ], [ -2.68611, 47.59569 ], [ -2.68083, 47.61514 ], [ -2.70028, 47.63708 ], [ -2.88883, 47.59972 ], [ -2.92533, 47.58105 ], [ -3.09347, 47.58597 ], [ -3.12507, 47.59541 ], [ -3.12778, 47.52541 ], [ -3.12028, 47.50055 ], [ -3.09875, 47.47576 ], [ -3.13264, 47.47666 ], [ -3.14403, 47.53132 ], [ -3.13347, 47.55097 ], [ -3.13451, 47.58083 ], [ -3.15375, 47.6118 ], [ -3.19056, 47.62861 ], [ -3.21694, 47.65055 ], [ -3.50889, 47.75861 ], [ -3.63327, 47.77746 ], [ -3.79278, 47.79388 ], [ -3.84097, 47.80319 ], [ -3.88646, 47.83264 ], [ -3.90444, 47.85277 ], [ -3.98222, 47.88972 ], [ -4.10139, 47.87499 ], [ -4.15549, 47.83701 ], [ -4.1675, 47.81721 ], [ -4.18278, 47.80416 ], [ -4.21222, 47.79902 ], [ -4.25583, 47.79472 ], [ -4.26944, 47.795 ], [ -4.36736, 47.80874 ], [ -4.36458, 47.83006 ], [ -4.34431, 47.84576 ], [ -4.35, 47.87194 ], [ -4.36389, 47.89889 ], [ -4.39222, 47.93444 ], [ -4.41945, 47.96083 ], [ -4.44347, 47.97666 ], [ -4.49035, 48.00292 ], [ -4.53451, 48.01951 ], [ -4.59111, 48.01694 ], [ -4.69181, 48.03069 ], [ -4.72224, 48.03918 ], [ -4.7059, 48.06805 ], [ -4.35389, 48.11291 ], [ -4.33195, 48.10444 ], [ -4.29813, 48.09923 ], [ -4.28292, 48.11652 ], [ -4.27625, 48.14839 ], [ -4.31326, 48.20277 ], [ -4.44139, 48.23833 ], [ -4.46833, 48.24236 ], [ -4.49278, 48.22996 ], [ -4.51111, 48.2 ], [ -4.5466, 48.17444 ], [ -4.62174, 48.27965 ], [ -4.56653, 48.33208 ], [ -4.53736, 48.34055 ], [ -4.54736, 48.30645 ], [ -4.53292, 48.29069 ], [ -4.40833, 48.28361 ], [ -4.26334, 48.28472 ], [ -4.19215, 48.29937 ], [ -4.3, 48.32055 ], [ -4.40222, 48.32833 ], [ -4.44046, 48.3462 ], [ -4.60528, 48.34472 ], [ -4.71139, 48.33472 ], [ -4.76063, 48.33499 ], [ -4.78215, 48.36451 ], [ -4.79028, 48.42375 ], [ -4.77667, 48.5111 ], [ -4.75097, 48.53944 ], [ -4.72889, 48.55888 ], [ -4.69972, 48.57083 ], [ -4.62875, 48.57986 ], [ -4.59958, 48.56937 ], [ -4.58972, 48.56 ], [ -4.58694, 48.57388 ], [ -4.56458, 48.62236 ], [ -4.53931, 48.63583 ], [ -4.35417, 48.67416 ], [ -4.17194, 48.68749 ], [ -3.99361, 48.72277 ], [ -3.97153, 48.71194 ], [ -3.96417, 48.68527 ], [ -3.94944, 48.6561 ], [ -3.8575, 48.63611 ], [ -3.85111, 48.65555 ], [ -3.86069, 48.68208 ], [ -3.83194, 48.71527 ], [ -3.81056, 48.7261 ], [ -3.72292, 48.71152 ], [ -3.67833, 48.69472 ], [ -3.63861, 48.68194 ], [ -3.58243, 48.67777 ], [ -3.53194, 48.73917 ], [ -3.57215, 48.76569 ], [ -3.57875, 48.78597 ], [ -3.53667, 48.82583 ], [ -3.5125, 48.83722 ], [ -3.47472, 48.84083 ], [ -3.37319, 48.8243 ], [ -3.22611, 48.86958 ], [ -3.12444, 48.865 ], [ -3.06083, 48.82638 ], [ -2.87917, 48.67889 ], [ -2.81194, 48.61416 ], [ -2.72056, 48.53305 ], [ -2.69556, 48.51305 ], [ -2.68528, 48.50166 ], [ -2.4659, 48.63069 ], [ -2.41833, 48.65361 ], [ -2.30722, 48.67611 ], [ -2.28444, 48.67222 ], [ -2.12833, 48.63861 ], [ -2.03944, 48.59822 ], [ -1.97611, 48.51305 ], [ -1.94537, 48.52872 ], [ -1.96028, 48.58409 ], [ -1.99111, 48.59708 ], [ -2.01419, 48.64311 ], [ -1.98806, 48.68694 ], [ -1.9325, 48.69722 ], [ -1.8475, 48.70916 ], [ -1.84069, 48.68395 ], [ -1.86708, 48.65763 ], [ -1.85042, 48.62472 ], [ -1.83292, 48.61347 ], [ -1.81222, 48.61055 ], [ -1.78722, 48.61055 ], [ -1.72278, 48.6111 ], [ -1.64111, 48.61653 ], [ -1.61514, 48.62416 ], [ -1.58863, 48.63968 ], [ -1.52111, 48.63638 ], [ -1.465, 48.63722 ], [ -1.36889, 48.64361 ], [ -1.44972, 48.67555 ], [ -1.4943, 48.68749 ], [ -1.56257, 48.74895 ], [ -1.57861, 48.83778 ], [ -1.57556, 48.86278 ], [ -1.56417, 48.91444 ], [ -1.55639, 49.01583 ], [ -1.58299, 49.00972 ], [ -1.5975, 49.04028 ], [ -1.61, 49.08944 ], [ -1.60972, 49.215 ], [ -1.68111, 49.29444 ], [ -1.70583, 49.31833 ], [ -1.74542, 49.35555 ], [ -1.78375, 49.3743 ], [ -1.8091, 49.37632 ], [ -1.84556, 49.49972 ], [ -1.84076, 49.58284 ], [ -1.84194, 49.61361 ], [ -1.85653, 49.64861 ], [ -1.89208, 49.66472 ], [ -1.91306, 49.66777 ], [ -1.94486, 49.67694 ], [ -1.94208, 49.72159 ], [ -1.92201, 49.72646 ], [ -1.84472, 49.71388 ], [ -1.71528, 49.68027 ], [ -1.66521, 49.66097 ], [ -1.62056, 49.65527 ], [ -1.52802, 49.65751 ], [ -1.50111, 49.66444 ], [ -1.47549, 49.68479 ], [ -1.41083, 49.70499 ], [ -1.37653, 49.7068 ], [ -1.32278, 49.70083 ], [ -1.28861, 49.69444 ], [ -1.26417, 49.68417 ], [ -1.23861, 49.65583 ], [ -1.22896, 49.61881 ], [ -1.25917, 49.59833 ], [ -1.29854, 49.57743 ], [ -1.30403, 49.55555 ], [ -1.29118, 49.52736 ], [ -1.26042, 49.49222 ], [ -1.24472, 49.47527 ], [ -1.16528, 49.40666 ], [ -1.10958, 49.36944 ], [ -1.07924, 49.38979 ], [ -0.97694, 49.39666 ], [ -0.92458, 49.3943 ], [ -0.89667, 49.37791 ], [ -0.85972, 49.3668 ], [ -0.82722, 49.36167 ], [ -0.72556, 49.35166 ], [ -0.62194, 49.34499 ], [ -0.58056, 49.34527 ], [ -0.50306, 49.34611 ], [ -0.4175, 49.34138 ], [ -0.36799, 49.32528 ], [ -0.29431, 49.30208 ], [ -0.22833, 49.28361 ], [ -0.09875, 49.30014 ], [ -0.07333, 49.30555 ], [ -0.03945, 49.31472 ], [ 0.0, 49.32878 ], [ 0.07069, 49.35541 ], [ 0.09208, 49.37152 ], [ 0.11361, 49.39139 ], [ 0.14056, 49.40597 ], [ 0.16944, 49.41416 ], [ 0.23528, 49.42722 ], [ 0.27028, 49.43027 ], [ 0.29524, 49.43146 ], [ 0.37667, 49.44083 ], [ 0.42472, 49.45166 ], [ 0.46576, 49.46882 ], [ 0.48819, 49.48625 ], [ 0.44139, 49.47167 ], [ 0.37986, 49.45666 ], [ 0.35361, 49.45416 ], [ 0.31583, 49.45319 ], [ 0.25611, 49.45722 ], [ 0.16083, 49.46889 ], [ 0.11319, 49.48777 ], [ 0.07583, 49.52257 ], [ 0.16972, 49.68889 ], [ 0.18597, 49.70403 ], [ 0.21111, 49.71888 ], [ 0.26694, 49.73361 ], [ 0.31111, 49.74499 ], [ 0.42694, 49.7886 ], [ 0.56333, 49.84472 ], [ 0.58583, 49.85278 ], [ 0.64028, 49.86611 ], [ 0.68903, 49.8743 ], [ 0.71333, 49.87555 ], [ 1.07111, 49.92666 ], [ 1.21097, 49.97291 ], [ 1.2325, 49.98167 ], [ 1.37243, 50.06578 ], [ 1.40167, 50.07888 ], [ 1.43875, 50.10083 ], [ 1.46111, 50.12416 ], [ 1.50556, 50.20194 ], [ 1.53444, 50.29041 ], [ 1.55437, 50.36006 ], [ 1.59181, 50.37041 ], [ 1.60385, 50.36879 ], [ 1.55979, 50.40187 ], [ 1.57722, 50.52806 ], [ 1.56417, 50.68471 ], [ 1.56444, 50.70583 ], [ 1.59861, 50.80917 ], [ 1.625, 50.87778 ], [ 1.73958, 50.94527 ], [ 1.76889, 50.95582 ], [ 1.79278, 50.96278 ], [ 1.94333, 50.99528 ], [ 2.23528, 51.03805 ], [ 2.35944, 51.05444 ], [ 2.38472, 51.05194 ], [ 2.41514, 51.05652 ], [ 2.49222, 51.07611 ], [ 2.51667, 51.08277 ], [ 2.54167, 51.09111 ] ] ] ] } }]}

1 Like

Hello @robbie.macintosh,

Thank you for your message.

I’ve reviewed the coordinates you shared—I replaced the curly quotes (“ ”) with straight quotes (")—and confirmed that they work correctly with the Mapbox maps’ create line action, and that they are not recognized by the Geofence plugin. I will investigate this issue further with our development team and get back to you as soon as I have more information.

Thank you for bringing this to our attention, and I hope you have a great day ahead!

Best regards,
Stefan

Thanks for the update.

when you speak with DEV, it would be great it the could also sort the ability to colour the polygon maybe using your random colour generator?

Hello @robbie.macintosh,

Thank you for reaching out.

Could you please clarify what you meant by “ability to colour the polygon”? Additionally, can yoou please bring more details on how do you envision this feature working?

If you are referring to the polygon created using Mapbox, you can indeed set the color of the polygon in the “properties” section by using “color”: “#FF0000”, for example.

Thank you once again, and I look forward to your response.

Best regards,
Stefan

sorry… Meant multipolygon, as adding a colour to a json file when many of them are supplied to us would be time-consuming…

even though in the example above I’ve set it to green, but it’s showing up as grey…

something like below would be ideal…

Hello @robbie.macintosh,

Thank for the questions.

I’ve looked into your request. The color field is designed to be used with Type lines or polygons where you just put coordinates and the rest you set from the element. However, the multipolygon feature is structured to accept and work dirrectly with JSON data, using the fields from the JSON to set all properties, including color.

Nonetheless, you can still incorporate dynamic data within the JSON, should you wish to use a random color(image).

Thank for your understanding and cooperation.

Have a wonderful weekend ahead!

Best regards,
Stefan

Thanks Stefan, I’ll have a think on how that could be implemented dynamically, as I’m reluctant to change the originating json files (currently +9000 of them) as they are from ‘trusted’ sources and editing them may lead to other complications down the line…

Hello @robbie.macintosh,

Thank you for reaching out.

Please do keep us updated on your progress. If you manage to find a solution, we’d love to hear about it.

I’m also excited to share that we’ve released a new version of the Geofence plugin, “1.6.0.” In this update, we’ve added support for multi-polygon JSON, which you can use in the same way as the create line action. Could you please test it and let us know if everything is working as expected on your end?

Thanks once again for your valuable feedback. I look forward to your response.

Best regards,
Stefan

Hi Stefan,

I’m back looking at colouring JSON’s, could you do me a huge favour and share the image you put in the chat last time, I think it has the colour set to use the random colouriser.

thanks

1 Like

Hello @robbie.macintosh,

Thank you for reaching out.

The server where the image was stored is no longer operational, but I can help you set a random color. You can use a plugin that generates random colors; in my case, I used the Random Color Generator.

Add the plugin element to your page, and in the geoJSON, where you set the “color” property, use the plugin element state “list of colors” + “item#”. This way, each item will have a random color.

I hope this helps! Please let me know if you have any questions or need further assistance.

Thanks again, and have a great day!

Best regards,
Stefan

thanks… that’s what I was looking for, I’m going to see if I can use a combination of REGEX and a search and replace to do it dynamically when we load GEOJson’s - I’ll keep you posted.

1 Like

Good Evening Stephan,

I considered the way you proposed in the screen shot, then decided that an easier option was to search for “properties” : { and replace with “properties” : {“color” : “RC’s colour:random item”,

image

it’s worked a treat for the GEOjson files that we have. (which are 1000’s of them)

1 Like

Hello @robbie.macintosh,

Thank you for your message.

Indeed, the solution you proposed is much more effective, especially considering the large number of GEOjson files in your application. We appreciate you sharing it with us. :pray:

If you have any other questions, inquiries, or suggestions for improvement , please feel free to reach us at any time.

Wish you a great day ahead!

Best regards,
Stefan