Skip to content

Commit 24dd190

Browse files
authored
Rename css (#185)
Resolves #83 * Rename CSS classes from mapboxgl-* to maplibre-* #83 - Initial commit * Added changelog comment * Rename CSS classes from mapboxgl-* to maplibre-* #83 - Fix missing rename * Rename CSS classes from mapboxgl-* to maplibre-* #83 - more fixes * Update migration readme * Bump version and update changelog accordingly
1 parent c8d6501 commit 24dd190

30 files changed

Lines changed: 341 additions & 329 deletions

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"declaration-block-semicolon-newline-after": "always-multi-line",
66
"block-opening-brace-space-before": "always-multi-line",
77
"declaration-block-single-line-max-declarations": 3,
8-
"selector-class-pattern": "mapboxgl-[a-z-]+",
8+
"selector-class-pattern": "maplibregl-[a-z-]+",
99
"at-rule-no-unknown": [true, {
1010
"ignoreAtRules": ["svg-load"]
1111
}]

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
### Features and improvements
44

55
- *...Add new stuff here...*
6+
7+
### 🐞 Bug fixes
8+
9+
- *...Add fixed bugs here...*
10+
11+
## 1.15.0
12+
13+
### Features and improvements
14+
15+
- ** Breaking Change: ** Rename css classes ((#83)[https://github.com/maplibre/maplibre-gl-js/issues/83])
616
- Added custom protocol support to allow overriding ajax calls ((#29)[https://github.com/maplibre/maplibre-gl-js/issues/29])
717
- Added setTransformRequest to map (#159)
818
- Publish @maplibre/maplibre-gl-style-spec v14.0.0 on NPM (#149)
@@ -16,7 +26,6 @@
1626

1727
### 🐞 Bug fixes
1828

19-
- *...Add fixed bugs here...*
2029
- Prevented attribution button from submiting form (#178)
2130

2231
## 1.14.0

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ If you depend on mapbox-gl directly, simply replace `mapbox-gl` with `maplibre-g
1212
}
1313
```
1414

15-
And replace ```mapboxgl``` with ```maplibregl``` in your JavaScript code:
15+
And replace ```mapboxgl``` with ```maplibregl``` in your JavaScript/HTML/CSS code:
1616
```diff
1717
- var map = new mapboxgl.Map({
1818
+ var map = new maplibregl.Map({
19+
20+
- <button class="mapboxgl-ctrl">
21+
+ <button class="maplibregl-ctrl">
1922
```
2023

2124
Want an example? [Try out MapLibre GL on CodePen](https://codepen.io/klokan/pen/WNoZRyx) and have a look at ones in the official [MapLibre GL JS Documentation](https://maplibre.org/maplibre-gl-js-docs/example/).

build/rollup_plugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {createFilter} from 'rollup-pluginutils';
1111
import strip from '@rollup/plugin-strip';
1212

1313
// Common set of plugins/transformations shared across different rollup
14-
// builds (main mapboxgl bundle, style-spec package, benchmarks bundle)
14+
// builds (main maplibre bundle, style-spec package, benchmarks bundle)
1515

1616
export const plugins = (minified, production) => [
1717
flow(),

debug/chinese.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
body { margin: 0; padding: 0; }
1010
html, body, #map { height: 100%; }
1111

12-
.mapboxgl-marker {
12+
.maplibregl-marker {
1313
width: 10px;
1414
height: 10px;
1515
background: red;

debug/events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
transition-duration: 200ms;
3838
}
3939

40-
#map.blur .mapboxgl-canvas-container {
40+
#map.blur .maplibregl-canvas-container {
4141
opacity: 0.6;
4242
-webkit-filter: blur(2px);
4343
filter: blur(2px);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "maplibre-gl",
33
"description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4-
"version": "1.14.1-rc.2",
4+
"version": "1.15.0",
55
"main": "dist/maplibre-gl.js",
66
"style": "dist/maplibre-gl.css",
77
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)