Skip to content

[WIP] feat(demo): fix examples #304

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 113 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 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
958383a
fix(view): set the center explicitly because it does not work via set…
Jan 5, 2021
c97026e
chore(release): version 1.0.0-next.17
Jan 6, 2021
f940292
feat(stroke): add ColorLike typing to color input
Dji75 Sep 1, 2021
4450d2e
chore(release): version 1.0.0-next.18
Sep 1, 2021
ebdca6e
fix(stroke): fix ColorLike import path
Sep 3, 2021
9c84392
chore(release): version 1.0.0-next.19
Sep 3, 2021
537e221
chore(readme): add contributors list to readme
jeremy-eychenne Apr 3, 2023
bf2f33e
chore: migrate to angular 10
jeremy-eychenne Mar 15, 2023
1130e7d
Merge pull request #273 from jeremy-eychenne/add-contributors-list-to…
quentinlampin Apr 11, 2023
8b2058c
Merge pull request #272 from jeremy-eychenne/migrate-to-angular-10
quentinlampin Apr 11, 2023
7e82125
chore: migrate to angular 11
jeremy-eychenne Apr 5, 2023
8d7dffe
chore: migrate to angular 12
jeremy-eychenne Apr 11, 2023
bc16e49
chore: migrate to eslint
jeremy-eychenne Apr 12, 2023
9226a8f
chore: migrate to angular 13
jeremy-eychenne Apr 21, 2023
4908b85
chore: migrate to angular 14
jeremy-eychenne Apr 24, 2023
2eced8b
Merge pull request #275 from jeremy-eychenne/migrate-to-angular-14
jeremy-eychenne Oct 6, 2023
a079a1c
ci: switch from travis to github actions
Neonox31 Oct 9, 2023
83cf6f5
chore(release): version 1.0.0-next.20
Neonox31 Nov 30, 2023
5ccd0aa
ci: add public access to npm publish
Neonox31 Nov 30, 2023
67e4ab0
chore(release): version 1.0.0-next.21
Neonox31 Nov 30, 2023
ec7f0b5
feat: update openlayers to ~6.13.0
jeremy-eychenne Apr 13, 2023
f068b92
feat: update openlayers to ~6.15.1
jeremy-eychenne Mar 12, 2024
c3a2371
doc: fix modify polygon demo
jeremy-eychenne Mar 21, 2024
8df5fb6
refactor(tsconfig): activate strict templates
jeremy-eychenne Mar 31, 2023
a70ba9c
build: fix vulnerabilities
jeremy-eychenne Mar 25, 2024
ff7a391
chore(release): version 14.0.0-next.0
jeremy-eychenne Mar 26, 2024
58c1a6b
feat(source-vector): support of 'loader' input
matthieu-lhotellerie Apr 24, 2024
ce9ff09
chore(release): version 14.1.0-next.0
jeremy-eychenne Apr 29, 2024
1218458
build: update to angular 15
jeremy-eychenne Dec 10, 2024
0c0e3cb
feat: update openlayers to `~7.5.2`
jeremy-eychenne Dec 10, 2024
f9a7100
chore(release): version 15.0.0-next.0
jeremy-eychenne Dec 12, 2024
b944862
build(node): use node 18
jeremy-eychenne Dec 12, 2024
d88da38
build(prettier): update prettier to `^3.4.3` and run `format`
jeremy-eychenne Dec 12, 2024
e33d6dd
build(jasmine): update jasmine to v5
jeremy-eychenne Dec 12, 2024
4f84a25
build: change angular peer deps from v14 to v15
jeremy-eychenne Dec 12, 2024
b129c81
build: update to Angular 16
jeremy-eychenne Dec 13, 2024
8b376e3
feat: update openlayers to `8.2.0`
jeremy-eychenne Dec 16, 2024
736e148
build: update commit-and-tag-version to 12.5.0
jeremy-eychenne Dec 19, 2024
5188480
chore(release): version 16.0.0-next.0
jeremy-eychenne Jan 10, 2025
c3bed7d
build: update to Angular 17
jeremy-eychenne Apr 4, 2025
51e2bf9
feat(demo): fix cursor position example
remiHau May 3, 2025
05ecf2d
feat(demo): fix hover example
remiHau May 3, 2025
a5eaf56
feat(demo): fix display geometry
May 4, 2025
9b0f3a6
feat(demo): fix display geojson source
May 4, 2025
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
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
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
77 changes: 77 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"jsdoc/newline-after-description": "off",
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "objectLiteralProperty",
"leadingUnderscore": "allow",
"format": [
"camelCase",
"PascalCase",
"snake_case",
"UPPER_CASE"
]
}
],
"arrow-parens": [
"off",
"always"
],
"import/order": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
66 changes: 66 additions & 0 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
on:
workflow_call:

env:
NODE_JS_VERSION: 18

jobs:
install-and-scan-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_JS_VERSION}}
cache: 'yarn'
- uses: actions/cache@v3
with:
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: '**/node_modules'
- run: yarn config get cacheFolder
- run: yarn --frozen-lockfile
- run: yarn run improved-yarn-audit --min-severity high

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_JS_VERSION}}
cache: 'yarn'
- uses: actions/cache@v3
with:
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: '**/node_modules'
- run: yarn config get cacheFolder
- run: yarn --frozen-lockfile
- run: yarn lint
needs:
- install-and-scan-deps

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_JS_VERSION}}
cache: 'yarn'
- uses: actions/cache@v3
with:
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: '**/node_modules'
- run: yarn --frozen-lockfile
- run: yarn build:lib
- run: yarn build:demo --base-href "/ngx-openlayers/" --progress false
- uses: actions/upload-artifact@v4
with:
name: lib-build
path: dist/ngx-openlayers/
- uses: actions/upload-artifact@v4
with:
name: demo-build
path: dist/demo-ngx-openlayers/
needs:
- install-and-scan-deps
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
push:
branches:
- '**'
tags-ignore:
- '**'

jobs:
angular:
uses: ./.github/workflows/angular.yml
76 changes: 76 additions & 0 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
on:
push:
tags:
- '*'

jobs:
angular:
uses: ./.github/workflows/angular.yml

release-lib-on-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: lib-build
path: dist/ngx-openlayers/
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_JS_VERSION}}
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v3
with:
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
path: '**/node_modules'
- run: cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md
- run: cd dist/ngx-openlayers/ && npm publish --tag next --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
needs:
- angular

release-lib-on-gh:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: lib-build
path: dist/ngx-openlayers/
- id: check-tag
run: |
if echo "${{ github.event.ref }}" | grep -Eq "^refs/tags/[0-9]+.[0-9]+.[0-9]+-.*$"; then
echo "prerelease=true" >> $GITHUB_OUTPUT
fi
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/ngx-openlayers/"
prerelease: ${{ steps.check-tag.outputs.prerelease == 'true' }}
needs:
- angular

deploy-demo-on-gh-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: demo-build
path: .
- uses: actions/upload-pages-artifact@v2
with:
path: .
- uses: actions/deploy-pages@v2
id: deployment
needs:
- angular
56 changes: 38 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,47 @@
# 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
/.angular/cache
/.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
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
src
example
tsconfig.json
tslint.json
*.tgz
node_modules/*
npm-debug.log
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.yarnpkg.com
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"
}
Loading