Comments (6)
@HPieters yes thanks for the issue i hope i've clarified it in migrations notes in changelog
from maps.
I might have created this issue to soon as I see that MapboxGL.StyleSheet.create
has been removed? If I check #4 it seems I can just use objects?
from maps.
@mfazekas Thanks! Perhaps a bit offtopic but how to I rewrite
iconOpacity: MapboxGL.StyleSheet.source([[0, 0.5], [1, 1]], 'active', MapboxGL.InterpolationMode.Categorical),
iconSize: MapboxGL.StyleSheet.source([[0, 0], [1, 1]], 'iconSize', MapboxGL.InterpolationMode.linear),
from maps.
And maybe we should remove / update https://github.com/react-native-mapbox/maps/blob/3bbd813020f935ec3cb36f6348e13082a3ac6422/docs/StyleSheet.md
from maps.
Something like this might work (not tested), let me know if works so we can add to docs as samples
iconOpacity: [
'step',
['get', 'active'],
0.5,
1, 1.0,
],
iconSize: [
'interpolate',
['linear'],
['get','iconSize'],
0, 0,
1, 1,
],
see also https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-interpolate and https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-step
from maps.
Seems to work great, thanks once again!
from maps.
Related Issues (20)
- [Bug]: Unresolved reference: allowOverlapWithPuck HOT 3
- Failed to build Android rnmapbox package for RN 0.73.0. HOT 2
- Android build fails on RN0.73 - :rnmapbox_maps:compileDebugKotlin HOT 2
- [Bug]: projection mercator not working HOT 6
- [Bug]: IllegalArgumentException java.lang.Enum in valueOf HOT 1
- [Bug]: Offline manager not downloading beyond zoom level 15? HOT 1
- [Bug]: Adding New Roads to Mapbox. HOT 1
- [Bug]: Adding new roads to mapbox base map HOT 1
- [Bug]: getPack and getPacks can not get full information after createPack HOT 2
- [Bug]: Android crashes upon launch with error: Exception in HostObject::get for prop 'RNMBXLocationModule': com.mapbox.common.location.IncompatibleGooglePlayServicesLocationVersion: Incompatible Google Play Services location version found. Please check https://docs.mapbox.com/android/maps/guides/user-location/ for more details. HOT 4
- npm package build fails HOT 4
- [Bug]: MapboxLibraryLoader.load java.lang.UnsatisfiedLinkError - couldn't find "libmapbox-common.so" HOT 1
- [Bug]: IOS crash report HOT 2
- [Bug]: Ios Crash when zoomEnabled is set HOT 1
- [Bug]: onMapIdle() and getVisibleBounds() returning different values when the displayed map area includes the antimeridian HOT 1
- [Bug]: onMapIdle() and getVisibleBounds() returning different values when the displayed map area includes the antimeridian HOT 1
- [Bug]: onMapIdle() and getVisibleBounds() returning different values when the displayed map area includes the antimeridian
- [Bug]: Error uploading ipa file: [Application Loader Error Output]: ERROR: [ContentDelivery.Uploader] Asset validation failed (90057) The bundle 'Payload/xxx.app/Frameworks/MapboxMaps.framework' is missing plist key.
- Expo build failed on Android : Could not resolve com.mapbox.maps:android:10.16.2 HOT 2
- [Bug]: Layers drawn incorrectly at certain zoom levels 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 maps.