Plot number vertice Point
VOCI1112 -1 a -14.96796, 168.0675
VOCI1112 -1 b
VOCI1112-1 c
VOCI1112-1 d
etc the I am tryong to get caspio to create a polygon around the verticies - and update that into the plot table.
I have the following example of Javascript from google - I assume I can use and pass the point field as a paramter into the path const below?
I expect I could use a triggered action for this however triggers dont work on data uploading.
Any ideas?
// This example creates a simple polygon representing the Bermuda Triangle.
function initMap(): void {
const map = new google.maps.Map(
document.getElementById("map") as HTMLElement,
{
zoom: 5,
center: { lat: 24.886, lng: -70.268 },
mapTypeId: "terrain",
}
);
// Define the LatLng coordinates for the polygon's path.
const triangleCoords = [
{ lat: 25.774, lng: -80.19 },
{ lat: 18.466, lng: -66.118 },
{ lat: 32.321, lng: -64.757 },
{ lat: 25.774, lng: -80.19 },
];
// Construct the polygon.
const bermudaTriangle = new google.maps.Polygon({
paths: triangleCoords,
strokeColor: "#FF0000",
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: "#FF0000",
fillOpacity: 0.35,
});
bermudaTriangle.setMap(map);
}
declare global {
interface Window {
initMap: () => void;
}
}
window.initMap = initMap;