Skip to content

Commit

Permalink
migration to module gridviz-eurostat
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Sep 29, 2023
1 parent 64e1e61 commit 78d6e4f
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,27 @@ export { getClass } from './utils/Utils.js'




import { GeoCanvas } from './GeoCanvas.js'
export const getParameterByName = GeoCanvas.getParameterByName

// set default d3 locale
import { formatDefaultLocale } from 'd3-format'
formatDefaultLocale({
decimal: '.',
thousands: ' ',
grouping: [3],
currency: ['', '€'],
})








// DEPRECATED - use gridviz-eurostat instead

import { geoAzimuthalEqualArea } from 'd3-geo'

/**
Expand Down Expand Up @@ -166,14 +185,3 @@ export const getEurostatBoundariesLayer = function (opts) {
opts.url = opts.baseURL + nutsYear + '/' + crs + '/' + scale + '/nutsbn_' + nutsLevel + '.json'
return opts
}

export const getParameterByName = GeoCanvas.getParameterByName

// set default d3 locale
import { formatDefaultLocale } from 'd3-format'
formatDefaultLocale({
decimal: '.',
thousands: ' ',
grouping: [3],
currency: ['', '€'],
})

0 comments on commit 78d6e4f

Please sign in to comment.