Skip to content

Commit

Permalink
Release version 0.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Sep 30, 2021
1 parent c8929be commit 17520d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
18 changes: 8 additions & 10 deletions dist/openlayers-indoorequal.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ var VectorTileLayer = require('ol/layer/VectorTile');
var VectorTileSource = require('ol/source/VectorTile');
var TileJSON = require('ol/source/TileJSON');
var MVT = require('ol/format/MVT');
var proj_js = require('ol/proj.js');
var TileGrid = require('ol/tilegrid/TileGrid.js');
var proj = require('ol/proj');
var TileGrid = require('ol/tilegrid/TileGrid');
var control = require('ol/control');
var BaseObject = require('ol/Object');
var Style = require('ol/style/Style');
var Fill = require('ol/style/Fill.js');
var Fill = require('ol/style/Fill');
var Stroke = require('ol/style/Stroke');
var Text = require('ol/style/Text');

Expand Down Expand Up @@ -188,8 +188,8 @@ function extentFromTileJSON(tileJSON) {
var bounds = tileJSON.bounds;

if (bounds) {
var ll = proj_js.fromLonLat([bounds[0], bounds[1]]);
var tr = proj_js.fromLonLat([bounds[2], bounds[3]]);
var ll = proj.fromLonLat([bounds[0], bounds[1]]);
var tr = proj.fromLonLat([bounds[2], bounds[3]]);
return [ll[0], ll[1], tr[0], tr[1]];
}
}
Expand Down Expand Up @@ -254,7 +254,7 @@ function getLayer(url, options) {
* A control to display the available levels
* @param {IndoorEqual} indoorEqual the IndoorEqual instance
* @param {object} options
* @param {url} [options.target] Specify a target if you want the control to be rendered outside of the map's viewport.
* @param {string} [options.target] Specify a target if you want the control to be rendered outside of the map's viewport.
* @return {LevelControl} `this`
*/

Expand Down Expand Up @@ -364,9 +364,7 @@ function areaLayer(feature, resolution) {
}

if (properties.layer === 'area' && properties["class"] === 'column') {
stroke = new Fill__default["default"]({
color: '#bfbfbf'
});
color = '#bfbfbf';
}

if (properties.layer === 'area' && ['room', 'wall'].includes(properties["class"])) {
Expand Down Expand Up @@ -440,7 +438,7 @@ function defaultStyle(feature, resolution) {
* Load the indoor= source and layers in your map.
* @param {object} map the OpenLayers instance of the map
* @param {object} options
* @param {url} [options.url] Override the default tiles URL (https://tiles.indoorequal.org/).
* @param {string} [options.url] Override the default tiles URL (https://tiles.indoorequal.org/).
* @param {string} [options.apiKey] The API key if you use the default tile URL (get your free key at [indoorequal.com](https://indoorequal.com)).
* @fires change:levels
* @fires change:level
Expand Down
14 changes: 6 additions & 8 deletions dist/openlayers-indoorequal.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import VectorTileLayer from 'ol/layer/VectorTile';
import VectorTileSource from 'ol/source/VectorTile';
import TileJSON from 'ol/source/TileJSON';
import MVT from 'ol/format/MVT';
import { fromLonLat } from 'ol/proj.js';
import TileGrid from 'ol/tilegrid/TileGrid.js';
import { fromLonLat } from 'ol/proj';
import TileGrid from 'ol/tilegrid/TileGrid';
import { Control } from 'ol/control';
import BaseObject from 'ol/Object';
import Style from 'ol/style/Style';
import Fill from 'ol/style/Fill.js';
import Fill from 'ol/style/Fill';
import Stroke from 'ol/style/Stroke';
import Text from 'ol/style/Text';

Expand Down Expand Up @@ -237,7 +237,7 @@ function getLayer(url, options) {
* A control to display the available levels
* @param {IndoorEqual} indoorEqual the IndoorEqual instance
* @param {object} options
* @param {url} [options.target] Specify a target if you want the control to be rendered outside of the map's viewport.
* @param {string} [options.target] Specify a target if you want the control to be rendered outside of the map's viewport.
* @return {LevelControl} `this`
*/

Expand Down Expand Up @@ -347,9 +347,7 @@ function areaLayer(feature, resolution) {
}

if (properties.layer === 'area' && properties["class"] === 'column') {
stroke = new Fill({
color: '#bfbfbf'
});
color = '#bfbfbf';
}

if (properties.layer === 'area' && ['room', 'wall'].includes(properties["class"])) {
Expand Down Expand Up @@ -423,7 +421,7 @@ function defaultStyle(feature, resolution) {
* Load the indoor= source and layers in your map.
* @param {object} map the OpenLayers instance of the map
* @param {object} options
* @param {url} [options.url] Override the default tiles URL (https://tiles.indoorequal.org/).
* @param {string} [options.url] Override the default tiles URL (https://tiles.indoorequal.org/).
* @param {string} [options.apiKey] The API key if you use the default tile URL (get your free key at [indoorequal.com](https://indoorequal.com)).
* @fires change:levels
* @fires change:level
Expand Down
4 changes: 2 additions & 2 deletions dist/openlayers-indoorequal.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openlayers-indoorequal",
"version": "0.0.2",
"version": "0.0.3",
"description": "Integrate indoor= into your OpenLayers map.",
"repository": "https://github.com/indoorequal/openlayers-indoorequal",
"author": "François de Metz",
Expand Down

0 comments on commit 17520d8

Please sign in to comment.