Skip to content

Commit

Permalink
Release version 0.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Jul 27, 2020
1 parent 3bc480b commit b20b419
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 6 deletions.
58 changes: 56 additions & 2 deletions dist/mapbox-gl-indoorequal.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,17 @@ const layers = [
]
],
paint: {
"fill-color": "white"
"fill-color": [
"case",
// if private
["all", ["has", "access"], ["in", ["get", "access"], ["literal", ["no", "private"]]]],
"#F2F1F0",
// if POI
["all", ["has", "is_poi"], ["==", ["get", "is_poi"], true]],
"#D4EDFF",
// default
"#fdfcfa"
]
}
},
{
Expand Down Expand Up @@ -181,6 +191,49 @@ const layers = [
}
}
},
{
id: "indoor-transportation-poi",
"type": "symbol",
"source-layer": "transportation",
"filter": [
"all",
[
"in",
"$type",
"Point",
"LineString"
],
[
"in",
"class",
"steps",
"elevator",
"escalator"
]
],
"layout": {
"icon-image": [
"case",
[
"has",
"conveying"
],
"indoorequal-escalator",
[
"concat",
[
"literal",
"indoorequal-"
],
[
"get",
"class"
]]
],
"symbol-placement": "line-center",
"icon-rotation-alignment": "viewport"
}
},
{
id: "indoor-poi-rank1",
...commonPoi,
Expand Down Expand Up @@ -489,11 +542,12 @@ class IndoorEqual {

/**
* Set the displayed level.
* @deprecated
* @deprecated Use setLevel instead
* @param {string} level the level to be displayed
* @fires IndoorEqual#levelchange
*/
updateLevel(level) {
console.log('The updateLevel method is deprecated. Please use setLevel instead.');
this.setLevel(level);
}

Expand Down
58 changes: 56 additions & 2 deletions dist/mapbox-gl-indoorequal.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,17 @@ const layers = [
]
],
paint: {
"fill-color": "white"
"fill-color": [
"case",
// if private
["all", ["has", "access"], ["in", ["get", "access"], ["literal", ["no", "private"]]]],
"#F2F1F0",
// if POI
["all", ["has", "is_poi"], ["==", ["get", "is_poi"], true]],
"#D4EDFF",
// default
"#fdfcfa"
]
}
},
{
Expand Down Expand Up @@ -177,6 +187,49 @@ const layers = [
}
}
},
{
id: "indoor-transportation-poi",
"type": "symbol",
"source-layer": "transportation",
"filter": [
"all",
[
"in",
"$type",
"Point",
"LineString"
],
[
"in",
"class",
"steps",
"elevator",
"escalator"
]
],
"layout": {
"icon-image": [
"case",
[
"has",
"conveying"
],
"indoorequal-escalator",
[
"concat",
[
"literal",
"indoorequal-"
],
[
"get",
"class"
]]
],
"symbol-placement": "line-center",
"icon-rotation-alignment": "viewport"
}
},
{
id: "indoor-poi-rank1",
...commonPoi,
Expand Down Expand Up @@ -485,11 +538,12 @@ class IndoorEqual {

/**
* Set the displayed level.
* @deprecated
* @deprecated Use setLevel instead
* @param {string} level the level to be displayed
* @fires IndoorEqual#levelchange
*/
updateLevel(level) {
console.log('The updateLevel method is deprecated. Please use setLevel instead.');
this.setLevel(level);
}

Expand Down
Loading

0 comments on commit b20b419

Please sign in to comment.