Skip to content

v1.6.0

Latest
Compare
Choose a tag to compare
@themustafaomar themustafaomar released this 12 Jun 19:26
· 18 commits to main since this release

v1.6.0

  • feat(maps): create the build maps script (99894b8)
  • feat(regions): set/clear selected regions programmatically (e6fab94) (#137)
  • fix(markers): add markers method (a59cc39)
  • chore: drop internet explorer entirly (964dcdd)
  • fix(visualization): NAN value is encountered when min and max are the same (b3b8030) (#147)
  • feat: allow all styles in add markers (bb8366e) (#140)
  • feat: refactor: support umd, es and cjs formats (b338ef9) (#153)

BREAKING CHANGES

Removed js and css from dist folder, so if you're importing jsvectormap from dist/js/jsvectormap.js it becomes dist/jsvectormap.js and css as well.

<!-- 
  /dist/js/jsvectormap.js       -> /dist/jsvectormap.js
  /dist/js/jsvectormap.min.js   -> /dist/jsvectormap.min.js
  /dist/js/jsvectormap.css      -> /dist/jsvectormap.css
  /dist/js/jsvectormap.min.css  -> /dist/jsvectormap.min.css
-->

Another thing is, when you add a particular style per marker please specify the case you want to apply the style for eg initial, hover, selected and selectedHover.

const map = new jsVectorMap({
  markers: [
    {
      name: 'Palestine',
      coords: [31.9522, 35.2332],
      // ❌ This isn't gonna work anymore
      style: { fill: 'red' },
      // ✅ Instead, style the marker based on its case.
      style: {
        initial: {
          fill: 'red'
        },
        // etc...
        hover: {}
      }
    }
  ]
})