Comments (2)
This question doesn't specifically relate to Turf.js and would probably be better placed on Stack Overflow. I say this as you could have this polygon come from any source and not just be generated by Turf.js (i.e. polygon could come from anywhere and you'd have the same issue).
There is some guidance on styling Polygons on the Mapbox GL website: https://docs.mapbox.com/mapbox-gl-js/example/geojson-polygon
I am not a Mapbox GL expert, but I'm not sure if you can style the hole differently to the outline of the main polygon. That might be best place on the Mapbox GL GitHub, or again Stack Overflow.
from turf.
Thank you @JamesLMilner , I'll move the issue to mapboc GL.
from turf.
Related Issues (20)
- turf.centerOfMass for multiple polygons in Feature Collection HOT 2
- booleanIntersects false positive for self-intersecting lines HOT 2
- [Bug report]: ts declaration broken HOT 2
- Could not find a declaration file for module '@turf/turf'. HOT 3
- booleanContains doesn't get good result when detect an unusual polygon HOT 1
- Typescript typing error when import "@turf/turf" HOT 2
- Can coordinate system parameters be added to some conversion methods?
- Drawing a curved line from Point A to Point B HOT 1
- Could not find a declaration file for module '@turf/mask' HOT 3
- There was a loss of accuracy when using the turf.intersect function
- BooleanWithin does not work correctly with (Island polygon / Doughnut).
- Property 'booleanPointInPolygon' does not exist on type 'TurfStatic' HOT 1
- isobands generating countered some wrong results HOT 3
- Broken TS types HOT 4
- turf.intersect(geometry 1, geometry 2) gets stuck for endless time HOT 7
- splitLineWithPoints doesn't split correctly HOT 2
- Randomly generated polygons do not comply with the right-hand rule. HOT 1
- turf.convex does not wrap the polygons as expected
- Point Icons in TURF Sand-box does not have access token HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turf.