Releases: GIShub4/solid-map-gl
Releases · GIShub4/solid-map-gl
v1.11.3
v1.11.1
Update to Mapbox v3
Update to Mapbox Version 3
Includes:
- Mapbox Standard Map
- Map configuration (Labels and Lighting)
- Layer
slot
property
Example
Bugfixes
- All nested DOM elements of
MapGL
component are properly displayed when in fullscreen mode
v1.10.1
Bugfixing
- Made 3D libraries optional in
package.json
v.1.10
Improvements
Bugfixing
v1.9.5
Rewrite of Marker
and Popup
Component
!! Some prop changes in Marker
and Popup
component, see Docs
Bugfixing
v1.9.4
v1.9.3
Bug Fixing
- Fix onLoad event not Firing
v1.9.1
Bugfixing
- Fixed set bounds on viewport
- When events are set on map and layers, then the layer event has priority
v1.9.0
Add Functionality
Optional simplified style definition
- No need to separate styles into
paint
andlayout
properties - Properties names can be in camelCase instead of dash-case (eg.: fill-translate-anchor --> fillTranslateAnchor)
- Prefix type in style properties can be omitted (eg.: fill-color --> color)
- For symbols you still need the icon and text prefix
Normal style
style={{
type: 'circle',
paint: {
'circle-radius': ['*', ['get', 'mag'], 2],
'circle-color': [
'match',
['get', 'tsunami'],
0,
'#F00',
1,
'#03A',
'#CCC',
],
'circle-opacity': 0.5,
'circle-stroke-width': 0.25,
'circle-pitch-alignment': 'map',
},
layout: {
visibility: true
}
}}
Simplified Style
style={{
type: 'circle',
radius: ['*', ['get', 'mag'], 2],
color: ['match', ['get', 'tsunami'], 0, '#F00', 1, '#03A', '#CCC'],
opacity: 0.5,
strokeWidth: 0.25,
pitchAlignment: 'map',
visibility: true
}}
This should make it easier to save styles as JSON.