bertin
bertin copied to clipboard
A package to draw maps in javascript
Example4 script reference to ../dist/index.min.js
PROJ4 & EPSG projections do not work well when making a map containing an "outline" layer
in https://github.com/neocarto/bertin/blob/main/src/layers/tiles.js the 'style' parameter only supports string type, and not user extendable. for a custom style/url, please consider support Object parameter like ``` { name: "openstreetmap", provider: "OpenStreetMap contributors",...
for type: "scalebar", add fill parameter which manage the color of the text and the line
Rename the modalities of a categorical variable to be displayed in the legend. I tried leg_text parameter, without success...
### Ideas + being able to style a map outside of bertin.js with a simple style sheet in css + apply the same style to several maps generated with bertin.js...
Tooltips doesn’t work in Firefox 97.0.1 on macos. See https://talk.observablehq.com/t/tooltips-in-bertin-js/6278/7
Add font-family property for each texts (i.e header, footer, legends, ...). See layer-labels. + improve the number of font. For now Pacifico, Roboto, Rubik, Ubuntu (see defs in draw.js)
With [Number.prototype.toLocaleString()](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString), tooltip could render more readable number. By default, it could be the browser locale, with an option to choose a specific one. A more refined option could be...