Skip to content

Add OpenLayers typings and use to fix type mismatches #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 70 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
1509fa9
chore(): migration to angular 6 project structure
davinkevin May 28, 2018
251bbf7
feat(demo): add example of map position with longitude, latitude and …
Jul 26, 2018
9a8988e
feat(demo): add example of a cursor position
Jul 26, 2018
367c72d
feat(demo): add example of geojson feature : point, polygon, linestring
Jul 26, 2018
fe977e6
feat(demo): add example to display geometry of a geojson file
Jul 26, 2018
2737e6b
feat(demo): example draw a polygon
Jul 26, 2018
18c95fa
feat(demo): example modify polygon
Jul 26, 2018
4b5b08b
feat(demo): example of side by side
Jul 26, 2018
9aa4dab
feat(demo): example of swipe
Jul 26, 2018
b7749f9
feat(demo): example of overlay
Jul 26, 2018
2e7bda4
feat(demo): example change color on hover or on select
Jul 26, 2018
b5f57b3
feat(demo): example of marker with svg
Jul 26, 2018
40966da
chore(ci): setup for ng6
Neonox31 Aug 2, 2018
d79d96c
chore(release): version 1.0.0-next.0
Neonox31 Sep 21, 2018
afeb1a9
fix(source): check host instance before setSource (#193)
aymeric-duchein Sep 26, 2018
f7578a4
feat(source): update params when input changes (TileWMS and ImageWMS)…
samuel-girard Oct 9, 2018
884429f
feat(view): add zoom change output
Sep 26, 2018
51a78ac
chore(ci): increase the default timeout for cache
Neonox31 Nov 6, 2018
2664617
chore(ci): switch back to nodejs 8 version
Neonox31 Nov 6, 2018
97ba298
chore(release): version 1.0.0-next.1
Neonox31 Nov 6, 2018
09ce87c
style: format code
Neonox31 Nov 14, 2018
d789ccf
feat(geom): add circle geometry (#210)
kekel87 Nov 20, 2018
98d1577
feat(source): add Image ArcGIS source (#209)
kekel87 Nov 20, 2018
1402b7d
chore(release): version 1.0.0-next.2
Neonox31 Nov 21, 2018
41448f9
style(color-select-hover): fix linting
Neonox31 Dec 11, 2018
fc856b3
feat(image): add image loading events
Dec 5, 2018
93429a6
feat(cluster): add wrapX option
kekel87 Nov 25, 2018
7d02de5
chore(release): version 1.0.0-next.3
Neonox31 Dec 12, 2018
f4330af
chore(package.json): update deps to angular 7
Neonox31 Jan 11, 2019
13a28c7
feat(raster): not updated when source change
Jan 9, 2019
9efdb8c
chore(release): version 1.0.0-next.4
Neonox31 Jan 14, 2019
76c0c83
feat(vector): add style, updateWhileAnimating and updateWhileInteract…
HarelM Dec 5, 2018
ee186a8
chore(package): fix rxjs dependency to 6.3.3 due to typings errors
Neonox31 Feb 4, 2019
cb8c9d0
chore(release): version 1.0.0-next.5
Neonox31 Feb 4, 2019
3d0bc9c
fix(source): update params ImageArcgisRest
kekel87 Mar 13, 2019
1803180
chore(release): version 1.0.0-next.6
Neonox31 Mar 13, 2019
965cf66
chore(angular): migration of demo to Angular 7
Apr 5, 2019
0ed47a3
feat(openlayers): migrate to 5 version
samuel-girard Jul 31, 2018
27b1529
feat(view): add change:resolution and change:center outputs
Sep 26, 2018
4dc9852
feat(overviewmap): refresh overview when the view changes
samuel-girard Oct 17, 2018
ccae9e0
feat(source): add UTF grid source
Apr 12, 2019
edc921c
chore(release): version 1.0.0-next.7
Neonox31 Apr 17, 2019
f0d4dd1
feat(geom): implements MultiPoint, MultiLinestring and MultiPolygon
samuel-girard Nov 29, 2018
3f0c228
feat(view): dynamically update view projection
samuel-girard Nov 29, 2018
f2d907c
chore(CHANGELOG): regenerate correct changelog
Neonox31 Apr 18, 2019
8ebc128
doc: add image static example
May 17, 2019
1e2a46f
doc: select interaction example
May 17, 2019
a65bb8c
doc: add tile json source example
May 17, 2019
410f876
feat(source:imagestatic): refresh layer source when url change
clara-belair Jun 3, 2019
5e20e8d
feat(graticule): unregister on destroy
kekel87 Jun 3, 2019
853238c
chore(release): version 1.0.0-next.8
Jun 4, 2019
63960f9
chore(release): version 1.0.0-next.9
Jun 4, 2019
7bb295a
chore(package.json): update ng-packagr dependency and lock package.js…
Neonox31 Jul 23, 2019
5edbd57
feat(cluster): update distance input
kekel87 Jul 17, 2019
ebba66d
chore(release): version 1.0.0-next.10
Jul 23, 2019
24c1c65
feat(imagearcgis): add image events
kekel87 Aug 7, 2019
6a44576
chore(release): version 1.0.0-next.11
Yakoust Aug 8, 2019
f41daf9
feat(map): add onMoveStart event
remiHau Aug 1, 2019
187a3b0
chore: update angular and openayer
Oct 23, 2019
e9dcb6d
chore(release): version 1.0.0-next.12
Nov 13, 2019
7aba5ca
feat(wmts): add wmts tile load events
Nov 13, 2019
aad20a5
chore(release): version 1.0.0-next.13
Nov 13, 2019
d068402
feat: update to angular 9
Feb 20, 2020
f1fdb84
chore(release): version 1.0.0-next.14
Neonox31 Apr 8, 2020
e6fe3eb
fix(travis): lib build without ngcc (demo issue)
kekel87 Apr 8, 2020
34ccc92
chore(release): version 1.0.0-next.15
Neonox31 Apr 8, 2020
69a46ca
feat(view): add missing inputs
kekel87 Jul 1, 2020
10b09cc
chore(release): version 1.0.0-next.16
Neonox31 Jul 2, 2020
f695cbe
feat(view): add multiWorld
Aug 4, 2020
4e53d29
Add OpenLayers typings and use to fix type mismatches
umohammed Aug 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 16 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
55 changes: 37 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,46 @@
# Node
node_modules/*
npm-debug.log
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# JetBrains
.idea
# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.project
.settings
.idea/*
*.iml
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Windows
Thumbs.db
Desktop.ini
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# Mac
# System Files
.DS_Store
**/.DS_Store

# Angular
/aot
Thumbs.db
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"parser": "typescript"
}
136 changes: 75 additions & 61 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,75 @@
language: node_js
sudo: false
node_js:
- '6'

env:
- NPM_CONFIG_LOGLEVEL='warn'

jobs:
include:
- stage: build library
before_script:
- rm -rf lib
script:
- npm pack
- mkdir -p lib
- cp *.tgz lib/
cache:
directories:
- lib
- stage: build demo
before_install:
- cd example
install:
- npm i
script:
- npm un -S ngx-openlayers
- cp -r ../lib .
- npm i -S lib/*.tgz
- npm run build
cache:
directories:
- lib
- stage: deploy library release
script: ignore
deploy:
- provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: lib/*
skip_cleanup: true
on:
tags: true
- stage: deploy demo pages
script: ignore
deploy:
- provider: pages
local_dir: dist
skip_cleanup: true
github_token: $GITHUB_OAUTH_TOKEN
on:
tags: true
- stage: publish library release
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
tags: true
skip_cleanup: true

language: node_js
sudo: false
node_js:
- '10'
install:
- yarn
cache:
timeout: 3600
yarn: true
directories:
- node_modules
- projects/ngx-openlayers/node_modules
- dist

jobs:
include:
- stage: check
name: next lib linting
script:
- yarn lint

- stage: build
name: next lib and demo
script:
- yarn build:lib
- cp -r dist/ngx-openlayers dist/ngx-openlayers-publish
- yarn build:demo --base-href "/ngx-openlayers/" --progress false

- stage: release
name: next lib version on github releases
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cd dist/ngx-openlayers-publish
- cp ../../projects/ngx-openlayers/CHANGELOG.md CHANGELOG.md
- npm pack
deploy:
- provider: releases
prerelease: true
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: '*.tgz'
skip_cleanup: true
on:
tags: true

- stage: release
name: next demo on github pages
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cd dist/demo-ngx-openlayers
deploy:
- provider: pages
local_dir: dist/demo-ngx-openlayers
skip_cleanup: true
github_token: $GITHUB_OAUTH_TOKEN
on:
tags: true

- stage: deploy
name: next lib version on npm
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers-publish/CHANGELOG.md
- cd dist/ngx-openlayers-publish
deploy:
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
tag: next
skip_cleanup: true
on:
tags: true
3 changes: 3 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ngx-openlayers [![Build Status](https://travis-ci.org/quentin-ol/ngx-openlayers.svg?branch=master)](https://travis-ci.org/quentin-ol/ngx-openlayers)[![Join the chat at https://gitter.im/ngx-openlayers](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ngx-openlayers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Demo
https://quentin-ol.github.io/ngx-openlayers/

## Installation

To install this library, run:
Expand Down
Loading