Skip to content

Releases: GIShub4/solid-map-gl

v1.11.3

27 May 23:16
Compare
Choose a tag to compare

Improvements

  • Add Scene to Layer3D child components.

Bug fixing

v1.11.1

07 Mar 02:32
Compare
Choose a tag to compare

#140 Add TS files

Thanks @joshm998

Update to Mapbox v3

23 Feb 06:23
Compare
Choose a tag to compare

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

18 Oct 23:42
Compare
Choose a tag to compare

Bugfixing

  • Made 3D libraries optional in package.json

v.1.10

16 Oct 01:14
Compare
Choose a tag to compare

v1.9.5

15 Sep 02:37
Compare
Choose a tag to compare

Rewrite of Marker and Popup Component

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

Bugfixing

v1.9.4

07 Sep 00:04
Compare
Choose a tag to compare

Bugfixing

v1.9.3

16 Aug 22:07
Compare
Choose a tag to compare

Bug Fixing

  • Fix onLoad event not Firing

v1.9.1

05 Jul 22:03
Compare
Choose a tag to compare

Bugfixing

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

v1.9.0

17 Jun 12:49
Compare
Choose a tag to compare

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.