Skip to content

Commit

Permalink
fix: set globale varible name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Oct 19, 2023
1 parent c281335 commit ae3c9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Use it in:
const baseUrl = new URL('/', window.location.href).href;
const map = new maplibregl.Map({
container: 'map',
style: colorful({
style: versatiles_styles.colorful({
glyphsUrl: baseUrl + 'fonts/{fontstack}/{range}.pbf',
spriteUrl: baseUrl + 'sprites/sprites',
tilesUrl: [baseUrl + 'tiles/{z}/{x}/{y}'],
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
input: './src/index.js',
output: {
file: 'dist/versatiles-styles.js',
format: 'umd'
format: 'umd',
name: 'versatiles_styles'
},
plugins: [
commonjs(),
Expand Down

0 comments on commit ae3c9ec

Please sign in to comment.