Solid Map Gl Versions Save

Solid JS Components Library for Mapbox & MapLibre 🌏

v1.11.3

1 month ago

Improvements

  • Add Scene to Layer3D child components.

Bug fixing

  • #173
  • #172
  • #171

v1.11.1

3 months ago

#140 Add TS files

Thanks @joshm998

v1.11.0

4 months ago

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

8 months ago

Bugfixing

  • Made 3D libraries optional in package.json

v.1.10

8 months ago

v1.9.5

9 months ago

Rewrite of Marker and Popup Component

!! Some prop changes in Marker and Popup component, see Docs

Bugfixing

v1.9.4

9 months ago

Bugfixing

  • Fixed issue #100
  • Fixed issue #94

v1.9.3

10 months ago

Bug Fixing

  • Fix onLoad event not Firing

v1.9.1

11 months ago

Bugfixing

  • Fixed set bounds on viewport
  • When events are set on map and layers, then the layer event has priority

v1.9.0

1 year ago

Add Functionality

Optional simplified style definition

  • No need to separate styles into paint and layout 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.