Questions tagged [polygon]

Need help with creating, editing, or displaying polygons in your graphical user interfaces? Let us assist you with all related issues.

Determine if a point within a shape on a map is contained within another shape using Leaf

I have extracted two sets of polygon coordinates from a leaflet geoJSON map. These are the parent and child coordinates: var parentCoordinates=[ [ 32.05898221582174, -28.31004731142091 ], [ 32.05898221582174, -2 ...

Tips for creating curved corners on a polygon using given x and y coordinates

Is there a way to draw a polygon from X, Y coordinates with rounded corners using the points I have? Below is my current code, but I am open to suggestions if there is another library that may work better. Displayed below is my output image generated by ...

Oops! An issue occurred at ./node_modules/web3-eth-contract/node_modules/web3-providers-http/lib/index.js:26:0 where a module cannot be located. The module in question is 'http'

I have been troubleshooting an issue with Next.js The error I am encountering => error - ./node_modules/web3-eth-contract/node_modules/web3-providers-http/lib/index.js:26:0 Module not found: Can't resolve 'http' Import trace for requested module: ...

Is there a way to utilize variables from a source XML file to establish points on an SVG polygon?

I've been struggling to figure out if it's possible to dynamically set points on an SVG polygon using variables that are defined by an XML document which is constantly changing. All I want is to set the path like this: var polygonToUse = window. ...

Divide the string at each second instance of an unidentified element

I have a string containing a series of coordinates that represent various polygons. Each polygon is closed, meaning it has the same starting and ending coordinates. My goal is to separate each polygon into its own string or list. '17.17165756225586 - ...