Skip to content
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

merge master #32

Merged
merged 61 commits into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
c30d7ef
feat(coord): conversion for user defined projections, utm, mtm and 3…
pelord Dec 19, 2019
6ea9127
feat(reverse-search): Retrieve the mouse coord on move/click (#537)
pelord Dec 19, 2019
0e009b1
feat(map): new button to manually activate/deactivate offline mode (#…
drekss Dec 19, 2019
9219a5e
Quickfix (#541)
pelord Dec 20, 2019
7079625
fix(context): globals tools
mbarbeau Jan 6, 2020
0ae5342
fix(context): only layer with source type
mbarbeau Jan 6, 2020
4710037
fix(contexts): add permission error message change (#540)
PhilippeLafreniere18 Jan 6, 2020
96bec67
fix(catalog): preview layer
mbarbeau Jan 6, 2020
dad02d3
feat(*): bust cache when user changed (#543)
mbarbeau Jan 8, 2020
c48eb10
feat(*): accentuate / emphasize on catalog group title and search res…
PhilippeLafreniere18 Jan 8, 2020
7dc0a0c
feat(view): animation and padding
mbarbeau Jan 8, 2020
d55f9aa
fix(share-map): remove included excluded elements when use an api
mbarbeau Jan 8, 2020
f78edaf
feat(ilayer): add type setting
mbarbeau Jan 9, 2020
ff828a0
feat(icherche): can restrict by extent
mbarbeau Jan 10, 2020
3a6059b
ui(spatial-filter): material icon update to version 4.7.95 / spatial-…
PhilippeLafreniere18 Jan 14, 2020
8b7ca22
feat(search-source): New search by 'cadastre' number (#546)
pelord Jan 15, 2020
fce0b94
feat(search-results): Display more results (#544)
PhilippeLafreniere18 Jan 15, 2020
6c3dcd5
reafactor(id-generator): Moving ID generator util (#549)
pelord Jan 17, 2020
4fe60f1
ui(search-settings): manage hashtags request with icherche (#547)
PhilippeLafreniere18 Jan 20, 2020
e3dc8b7
fix(ogc-filter) Sync pushbutton filter with downloaded data (was not …
pelord Jan 20, 2020
15612e4
fix(search): Fix cadastre and pointer summary setting (#550)
pelord Jan 20, 2020
e600188
refactor(cadastre) export the cadastre provider into the geo public_a…
pelord Jan 20, 2020
85c931b
fix(reverseSearch): fix coordinates and feature selection with revers…
PhilippeLafreniere18 Jan 21, 2020
249acb2
locale(terrapi): add somes translations
mbarbeau Jan 21, 2020
2321d67
locale(terrapi): add somes translations
mbarbeau Jan 21, 2020
04e1beb
fix(spatialFilter): missing traduction fix / CSS title update (#554)
PhilippeLafreniere18 Jan 21, 2020
97c81b5
fix(search-results): features-details stays with tool deactivation (#…
PhilippeLafreniere18 Jan 21, 2020
f40c785
fix(*): minors fix
mbarbeau Jan 21, 2020
13b4de9
feat(analytics): track events (#557)
mbarbeau Jan 23, 2020
3fa9ea4
refactor(overlay.utils) add width property to stroke (#556)
pelord Jan 24, 2020
9e9ed1e
fix(view): Zoom to behavior on feature select/zoomto (#551)
pelord Jan 24, 2020
84348f1
feat(catalog) Provide optional option to show legend from catalog la…
pelord Jan 24, 2020
a36648e
fix(export): bug when cluster datasource
mbarbeau Jan 27, 2020
08c42d2
feat(baselayer): the map zoom is now limited by the baselayer
mbarbeau Jan 27, 2020
ea01bdb
feat(zoom-button): disable the buttons when the zoom limit is reached
mbarbeau Jan 27, 2020
637831d
fix(legend): loading icon
mbarbeau Jan 27, 2020
5c2e5dc
fix(actionbar): icon is not the right size
mbarbeau Jan 28, 2020
2d18eb2
fix(*): scroll / swipe malfunction in mobile
mbarbeau Jan 28, 2020
2de6393
fix(view): keepCurrentView option prevent the map to load on init #477
mbarbeau Jan 28, 2020
5a7923d
test(*): fix layer-legend and search settings tests
mbarbeau Jan 28, 2020
53cc7ec
feat(map-details-tool): empty map message (#560)
PhilippeLafreniere18 Jan 30, 2020
ce5c6f9
fix(search-results): display more results fix
PhilippeLafreniere18 Jan 29, 2020
dc6e5f1
fix(layer-legend): fix firefox loading icon
mbarbeau Jan 30, 2020
0595837
locale(pointerSearchSummary): change the tooltip
mbarbeau Jan 30, 2020
e40495e
fix(measure): ft tooltip to pi for french translation (#572)
PhilippeLafreniere18 Jan 31, 2020
37e2276
fix(feature-details) Show all fields (with alias) despite if the fiel…
pelord Feb 3, 2020
583e908
fix(auth): Fix IE11 authentification interceptor bug (#569)
PhilippeLafreniere18 Feb 3, 2020
74fae5a
feat(view): add maxZoomOnExtent options to restrict the zoom level af…
mbarbeau Feb 3, 2020
f5c959d
fix(search): fix some issues with coordinates regex and add options t…
mbarbeau Feb 3, 2020
8b7565c
feat(import-export): imported file can be styled from a style list (#…
drekss Feb 3, 2020
56f7cce
demo(import-export): add import-export demo with style
mbarbeau Feb 3, 2020
1a65a92
fix(toast-panel): get feature info collapsible fix
PhilippeLafreniere18 Feb 5, 2020
e7d426b
fix(catalog): add resolution to WMTS catalog (#574)
pelord Feb 5, 2020
5aa5fbd
fix(ilayer): hashtags is now working
mbarbeau Feb 5, 2020
f2754a8
refactor(epsg): Remove hardcoded EPSG (#577)
pelord Feb 10, 2020
22a44b8
chore(travis) (#579)
pelord Feb 10, 2020
1ee3f63
feat(directions): improve the directions tool (#578)
pelord Feb 10, 2020
ab3f773
docs(readme): add badges
mbarbeau Feb 10, 2020
5caca59
fix(directions): hover style on steps
mbarbeau Feb 10, 2020
75dc81a
1.2.0
mbarbeau Feb 10, 2020
2d729fc
feat(catalog): add catalog composite (#559)
hugbe8 Feb 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- 11
- 10
- 9
- 8


before_script:
- npm install -g gulp-cli
- npm run build.libs

addons:
chrome: stable
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,74 @@
# [1.2.0](https://github.com/infra-geo-ouverte/igo2-lib/compare/1.1.0...1.2.0) (2020-02-10)


### Bug Fixes

* minors fix ([f40c785](https://github.com/infra-geo-ouverte/igo2-lib/commit/f40c785a8e34f57dc70eff2be5207d4aae6ee6d2))
* scroll / swipe malfunction in mobile ([2d18eb2](https://github.com/infra-geo-ouverte/igo2-lib/commit/2d18eb2b1f5d070f4df684cad59bf29b4f532d73))
* **actionbar:** icon is not the right size ([5c2e5dc](https://github.com/infra-geo-ouverte/igo2-lib/commit/5c2e5dceedf1dbb0b92561e008247af7d5377d22))
* **auth:** Fix IE11 authentification interceptor bug ([#569](https://github.com/infra-geo-ouverte/igo2-lib/issues/569)) ([583e908](https://github.com/infra-geo-ouverte/igo2-lib/commit/583e9083cd61e6d65b93a6c8bac5a4f5e037c71a))
* **auth:** fix import order of auth and config ([d404ccc](https://github.com/infra-geo-ouverte/igo2-lib/commit/d404ccc0787ed1ee6e84d456d71d7221399dbd7e))
* **catalog:** add resolution to WMTS catalog ([#574](https://github.com/infra-geo-ouverte/igo2-lib/issues/574)) ([e7d426b](https://github.com/infra-geo-ouverte/igo2-lib/commit/e7d426b46c5d4b0252416acd9fc4910e27f69df9))
* **catalog:** options from api ([66ba65a](https://github.com/infra-geo-ouverte/igo2-lib/commit/66ba65a7cd1f221e7b7821e9f3586c8a15d7f327))
* **catalog:** preview layer ([96bec67](https://github.com/infra-geo-ouverte/igo2-lib/commit/96bec67fb7f6d714b0b222cac3fbed4672fdaf56))
* **context:** fix some problems with context updates ([#536](https://github.com/infra-geo-ouverte/igo2-lib/issues/536)) ([202b07b](https://github.com/infra-geo-ouverte/igo2-lib/commit/202b07b4b1e98137a60666899365301249e0fdb1))
* **context:** globals tools ([7079625](https://github.com/infra-geo-ouverte/igo2-lib/commit/707962512f3fe8fa0263bb26f31dd93b152efc14))
* **context:** only layer with source type ([0ae5342](https://github.com/infra-geo-ouverte/igo2-lib/commit/0ae5342a242b346d2935ff699c549039dc6f7425))
* **context:** toolbar is replaced instead of merge ([4a808bf](https://github.com/infra-geo-ouverte/igo2-lib/commit/4a808bf2c8bb7cb76333050bd1de448f14324e91))
* **contexts:** add permission error message change ([#540](https://github.com/infra-geo-ouverte/igo2-lib/issues/540)) ([4710037](https://github.com/infra-geo-ouverte/igo2-lib/commit/471003732d1bdca6da146aa1cf052a4be3ff0ca6))
* **directions:** hover style on steps ([5caca59](https://github.com/infra-geo-ouverte/igo2-lib/commit/5caca597eb4eb8b78e3af9b5666508e5ce77e27d))
* **export:** bug when cluster datasource ([a36648e](https://github.com/infra-geo-ouverte/igo2-lib/commit/a36648eca6f73bddb3c44c541b472b7b175a6c32))
* **geo:** Duplicated WMS params lowercase vs uppercase ([#519](https://github.com/infra-geo-ouverte/igo2-lib/issues/519)) ([9f85d47](https://github.com/infra-geo-ouverte/igo2-lib/commit/9f85d476599088623190a5e091422a7e01666f7b))
* **icherche:** ajust regex to filter type ([dc30fc2](https://github.com/infra-geo-ouverte/igo2-lib/commit/dc30fc2881738d9e27720b3e0e45d84d629d91d5))
* **icherche:** rename bornes to bornes-sumi ([00b1b6e](https://github.com/infra-geo-ouverte/igo2-lib/commit/00b1b6e7eeaaea2f99eec60c821310524cac98c2))
* **ilayer:** hashtags is now working ([5aa5fbd](https://github.com/infra-geo-ouverte/igo2-lib/commit/5aa5fbd7f3b02fa9d656e9b5b3b656d39275d5a2))
* **layer-legend:** fix firefox loading icon ([dc6e5f1](https://github.com/infra-geo-ouverte/igo2-lib/commit/dc6e5f14d135d0a7d322aec5181472a7150eb77c))
* **legend:** loading icon ([637831d](https://github.com/infra-geo-ouverte/igo2-lib/commit/637831d06c216ba457363925ba3ff5209c7e6f2d))
* **measure:** ft tooltip to pi for french translation ([#572](https://github.com/infra-geo-ouverte/igo2-lib/issues/572)) ([e40495e](https://github.com/infra-geo-ouverte/igo2-lib/commit/e40495e7efd3dc264531a9f8491f178c66d3f833))
* **query:** add warning message for multipolygons in mapserver GML2 ([881270c](https://github.com/infra-geo-ouverte/igo2-lib/commit/881270c91247ef1acbb393019b3c46afc09b55a0))
* **reverseSearch:** fix coordinates and feature selection with reverse search ([#553](https://github.com/infra-geo-ouverte/igo2-lib/issues/553)) ([85c931b](https://github.com/infra-geo-ouverte/igo2-lib/commit/85c931bf7e8b95b0334c443e6d9e16c9aa8374f6))
* **search:** Fix cadastre and pointer summary setting ([#550](https://github.com/infra-geo-ouverte/igo2-lib/issues/550)) ([15612e4](https://github.com/infra-geo-ouverte/igo2-lib/commit/15612e42cee6f43f098286cc14890d4fdd78fc99))
* **search:** fix some issues with coordinates regex and add options to invert the coordinates if they are not in North America ([f5c959d](https://github.com/infra-geo-ouverte/igo2-lib/commit/f5c959d30b5f91ad7f1164e47e058207a058df41))
* **search-results:** display more results fix ([ce5c6f9](https://github.com/infra-geo-ouverte/igo2-lib/commit/ce5c6f9bc039b73215aaedd1dda8fb0abdc977be))
* **search-results:** features-details stays with tool deactivation ([#555](https://github.com/infra-geo-ouverte/igo2-lib/issues/555)) ([97c81b5](https://github.com/infra-geo-ouverte/igo2-lib/commit/97c81b53f52c52d5585c85618f11bed911f26a66))
* **search-source:** can now define limit and others options in config ([f8ef468](https://github.com/infra-geo-ouverte/igo2-lib/commit/f8ef468c311d4dfd40cfda825b2080ee8ed6beea))
* **search-source:** Replace toFixed by a rounding function to fix error on string data and preventing trailling zeros ([#520](https://github.com/infra-geo-ouverte/igo2-lib/issues/520)) ([9ed03dd](https://github.com/infra-geo-ouverte/igo2-lib/commit/9ed03dd6c4af4a71b499b2f14a1e819385f99146))
* **share-map:** remove included excluded elements when use an api ([d55f9aa](https://github.com/infra-geo-ouverte/igo2-lib/commit/d55f9aafef02e9f9a932be9f99d8aa468e47a990))
* **spatialFilter:** missing traduction fix / CSS title update ([#554](https://github.com/infra-geo-ouverte/igo2-lib/issues/554)) ([04e1beb](https://github.com/infra-geo-ouverte/igo2-lib/commit/04e1beb35cfcd67a5db7c95d099c1d61f1e69f6f))
* **terrapi:** fix if all types is disabled ([28f5c51](https://github.com/infra-geo-ouverte/igo2-lib/commit/28f5c51628ae8b8bc9b579e5ebb6d861b2a186fd))
* **toast-panel:** get feature info collapsible fix ([1a65a92](https://github.com/infra-geo-ouverte/igo2-lib/commit/1a65a92f9453d4f8c1aefc6103d2ccff5e865ece))
* **view:** keepCurrentView option prevent the map to load on init [#477](https://github.com/infra-geo-ouverte/igo2-lib/issues/477) ([2de6393](https://github.com/infra-geo-ouverte/igo2-lib/commit/2de63937bf083279d0be882579701794977d59a4))
* **view:** Zoom to behavior on feature select/zoomto ([#551](https://github.com/infra-geo-ouverte/igo2-lib/issues/551)) ([9e9ed1e](https://github.com/infra-geo-ouverte/igo2-lib/commit/9e9ed1e8399ebb776bd4c0cdc0a2b8aa92e3f2fc))


### Features

* accentuate / emphasize on catalog group title and search results title ([#542](https://github.com/infra-geo-ouverte/igo2-lib/issues/542)) ([c48eb10](https://github.com/infra-geo-ouverte/igo2-lib/commit/c48eb10aa8aa75fc8cc8b0e5fbbac7bb6f3640fc))
* bust cache when user changed ([#543](https://github.com/infra-geo-ouverte/igo2-lib/issues/543)) ([dad02d3](https://github.com/infra-geo-ouverte/igo2-lib/commit/dad02d38977f47811a8e2d0c761baf9c78953720))
* **analytics:** track events ([#557](https://github.com/infra-geo-ouverte/igo2-lib/issues/557)) ([13b4de9](https://github.com/infra-geo-ouverte/igo2-lib/commit/13b4de9616fd59d5c935b4eddbd9982aeedfa0f5))
* **auth:** refresh token ([fa94a3f](https://github.com/infra-geo-ouverte/igo2-lib/commit/fa94a3f8a71a36d42300cf25941120ebc84471ce))
* **baselayer:** the map zoom is now limited by the baselayer ([08c42d2](https://github.com/infra-geo-ouverte/igo2-lib/commit/08c42d29743588d1a0bb64dc83a1bf67414bd803))
* **directions:** improve the directions tool ([#578](https://github.com/infra-geo-ouverte/igo2-lib/issues/578)) ([1ee3f63](https://github.com/infra-geo-ouverte/igo2-lib/commit/1ee3f63ada1136ff53c5ac973b71e0199d175ae6))
* **feature:** possibility to generate mvt data source as regular features or as renderFeatures. ([#527](https://github.com/infra-geo-ouverte/igo2-lib/issues/527)) ([a157337](https://github.com/infra-geo-ouverte/igo2-lib/commit/a157337bee56c35c54e6ae45c1d60f199cd8c8fa))
* **icherche:** can restrict by extent ([ff828a0](https://github.com/infra-geo-ouverte/igo2-lib/commit/ff828a0e62e93ef8d8cc2d866fba87ea867d3efd))
* **ilayer:** add type setting ([f78edaf](https://github.com/infra-geo-ouverte/igo2-lib/commit/f78edaf4077fc59640c082f0ff7e49d54c0f3ce5))
* **import-export:** imported file can be styled from a style list ([#571](https://github.com/infra-geo-ouverte/igo2-lib/issues/571)) ([8b7565c](https://github.com/infra-geo-ouverte/igo2-lib/commit/8b7565ccff1feb86ddd2ae6d923a0ac66a33b2e3))
* **map:** new button to manually activate/deactivate offline mode ([#539](https://github.com/infra-geo-ouverte/igo2-lib/issues/539)) ([0e009b1](https://github.com/infra-geo-ouverte/igo2-lib/commit/0e009b160216a03d703bac93d36a72326a0300c9))
* **map-details-tool:** empty map message ([#560](https://github.com/infra-geo-ouverte/igo2-lib/issues/560)) ([53cc7ec](https://github.com/infra-geo-ouverte/igo2-lib/commit/53cc7ec9b8d7a2c11a1de9a52d89d6093f997110))
* **reverse-search:** Retrieve the mouse coord on move/click ([#537](https://github.com/infra-geo-ouverte/igo2-lib/issues/537)) ([6ea9127](https://github.com/infra-geo-ouverte/igo2-lib/commit/6ea91274d36d46b1be52fe7db7b08c89597146be))
* **reverse-search:** sort by distance ([85468b9](https://github.com/infra-geo-ouverte/igo2-lib/commit/85468b9104654a032c6a25b1dd3136237f691f77))
* **search-results:** Display more results ([#544](https://github.com/infra-geo-ouverte/igo2-lib/issues/544)) ([fce0b94](https://github.com/infra-geo-ouverte/igo2-lib/commit/fce0b9498e2deabf0263b1fe01ea59114471d1f8))
* **search-source:** New search by 'cadastre' number ([#546](https://github.com/infra-geo-ouverte/igo2-lib/issues/546)) ([8b7ca22](https://github.com/infra-geo-ouverte/igo2-lib/commit/8b7ca222a24d994079ab0433465ba563bab9feda))
* **Spatial filter:** add spatial filter tool ([#513](https://github.com/infra-geo-ouverte/igo2-lib/issues/513)) ([de1db79](https://github.com/infra-geo-ouverte/igo2-lib/commit/de1db79dacd70c3bc3296c1c7cb226a7681c07a0))
* **spatial-fiter:** add config ([dfe58b8](https://github.com/infra-geo-ouverte/igo2-lib/commit/dfe58b83491423e6d55988dc7ba67af3db81effc))
* **tooltip:** better tooltip on search results ([2159180](https://github.com/infra-geo-ouverte/igo2-lib/commit/2159180c389df68affb730c7c7327117fb455b8e))
* **view:** add maxZoomOnExtent options to restrict the zoom level after a set extent ([74fae5a](https://github.com/infra-geo-ouverte/igo2-lib/commit/74fae5a86642a17ad78443de7cb5be8cb1aed8dc))
* **view:** animation and padding ([7dc0a0c](https://github.com/infra-geo-ouverte/igo2-lib/commit/7dc0a0c7493d2ac1678fc7a8b8ab29b3b6cf5395))
* **zoom:** Zoom feature ([#524](https://github.com/infra-geo-ouverte/igo2-lib/issues/524)) ([7c76fef](https://github.com/infra-geo-ouverte/igo2-lib/commit/7c76fefee341ec8a9fabb9447a5262da5798f7f9)), closes [#2](https://github.com/infra-geo-ouverte/igo2-lib/issues/2)
* **zoom-button:** disable the buttons when the zoom limit is reached ([ea01bdb](https://github.com/infra-geo-ouverte/igo2-lib/commit/ea01bdb4588e3751cb318d1bf07ae99819d393fb))



# [1.1.0](https://github.com/infra-geo-ouverte/igo2-lib/compare/1.0.0...1.1.0) (2019-11-12)


Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)
[![Build Status](https://travis-ci.org/infra-geo-ouverte/igo2-lib.svg?branch=master)](https://travis-ci.org/infra-geo-ouverte/igo2-lib)
[![Dependencies Status](https://david-dm.org/infra-geo-ouverte/igo2-lib.svg)](https://david-dm.org/infra-geo-ouverte/igo2-lib)
[![devDependencies Status](https://david-dm.org/infra-geo-ouverte/igo2-lib/dev-status.svg)](https://david-dm.org/infra-geo-ouverte/igo2-lib?type=dev)
[![Known Vulnerabilities](https://snyk.io/test/github/infra-geo-ouverte/igo2-lib/badge.svg)](https://snyk.io/test/github/infra-geo-ouverte/igo2-lib)


# IGO2 Library

This repository is home to the IGO2 Library on which IGO2 is built. IGO2 and this library are open source projects using Angular, Angular Material and OpenLayers. While IGO2 is mapping oriented, this library can easily serve other purposes as it contains many components and services that may benefit any web application.
Expand All @@ -18,7 +25,7 @@ IGO2 library is divided into several elements:

- @igo2/context : Library of components uniting @igo2/geo and @igo2/auth

- @igo2/tools : Library integrate basic components
- @igo2/integration : Library integrate basic components

## Demo

Expand All @@ -40,6 +47,13 @@ Example:

### Developer Installation

Require:

| IGO2 version | Node version | Git |
|--------------|----------------------|----------|
| 1.x.x | >= 8.17.0, <= 11.15.0 | Yes |
| 0.x.x | >= 6.5.0, <= 10.18.1 | Yes |

If you want to develop in IGO2 Library, it can be installed by:

1. Clone current repository: using `git clone https://github.com/infra-geo-ouverte/igo2-lib.git`
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/geo/directions/directions.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<igo-rotation-button [map]="map" [showIfNoRotation]="false" color="primary"></igo-rotation-button>
</igo-map-browser>

<igo-routing-form [map]="map"></igo-routing-form>
<igo-directions-form [stopsStore]="stopsStore" [routeStore]="routeStore" [map]="map"></igo-directions-form>

</mat-card>
13 changes: 12 additions & 1 deletion demo/src/app/geo/directions/directions.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { Component } from '@angular/core';

import { LanguageService } from '@igo2/core';
import { IgoMap, LayerService, MapService } from '@igo2/geo';
import {
IgoMap,
LayerService,
MapService,
FeatureStore,
Feature,
ProjectionService
} from '@igo2/geo';

@Component({
selector: 'app-directions',
Expand All @@ -23,7 +30,11 @@ export class AppDirectionsComponent {
geolocate: true
};

public stopsStore = new FeatureStore<Feature>([], {map: this.map});
public routeStore = new FeatureStore<Feature>([], {map: this.map});

constructor(
private projectionService: ProjectionService,
private languageService: LanguageService,
private layerService: LayerService,
private mapService: MapService
Expand Down
8 changes: 4 additions & 4 deletions demo/src/app/geo/directions/directions.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { MatCardModule, MatButtonModule } from '@angular/material';
import { IgoMessageModule } from '@igo2/core';
import {
IgoMapModule,
IgoRoutingModule,
provideOsrmRoutingSource
IgoDirectionsModule,
provideOsrmDirectionsSource
} from '@igo2/geo';

import { AppDirectionsComponent } from './directions.component';
Expand All @@ -19,9 +19,9 @@ import { AppDirectionsRoutingModule } from './directions-routing.module';
MatButtonModule,
IgoMessageModule,
IgoMapModule,
IgoRoutingModule
IgoDirectionsModule
],
exports: [AppDirectionsComponent],
providers: [provideOsrmRoutingSource()]
providers: [provideOsrmDirectionsSource()]
})
export class AppDirectionsModule {}
13 changes: 11 additions & 2 deletions demo/src/app/geo/import-export/import-export.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { NgModule } from '@angular/core';
import { MatCardModule, MatButtonModule } from '@angular/material';

import { IgoMessageModule } from '@igo2/core';
import { IgoMapModule, IgoImportExportModule } from '@igo2/geo';
import {
IgoMapModule,
IgoImportExportModule,
provideStyleListOptions
} from '@igo2/geo';

import { AppImportExportComponent } from './import-export.component';
import { AppImportExportRoutingModule } from './import-export-routing.module';
Expand All @@ -17,6 +21,11 @@ import { AppImportExportRoutingModule } from './import-export-routing.module';
IgoMapModule,
IgoImportExportModule
],
exports: [AppImportExportComponent]
exports: [AppImportExportComponent],
providers: [
provideStyleListOptions({
path: './assets/import-style.json'
})
]
})
export class AppImportExport {}
28 changes: 24 additions & 4 deletions demo/src/app/geo/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,45 @@
See the <a href="https://github.com/infra-geo-ouverte/igo2-lib/tree/master/demo/src/app/geo/search">code of this example</a><br>
See search section of the <a href="https://github.com/infra-geo-ouverte/igo2-lib/tree/master/demo/src/environments"> environment config</a>
<hr>
<br>
<span *ngIf="!isTouchScreen" title="Details">
You can trigger the seach by coordinate by holding the CRTL key down while moving your cursor (on desktop). Don't
forget to focus on map before.
<br>
<br>
F2 activate/desactivate the pointer location.
</span>
</mat-card-content>

<igo-map-browser #mapBrowser [map]="map" [view]="view" igoOverlay [igoContextMenu]=actionbarMenu (menuPosition)="onContextMenuOpen($event)">
<igo-map-browser #mapBrowser [map]="map" [view]="view" igoOverlay [igoContextMenu]=actionbarMenu

igoSearchPointerSummary
[igoSearchPointerSummaryDelay]="500"
[igoSearchPointerSummaryEnabled]="igoSearchPointerSummaryEnabled"

(menuPosition)="onContextMenuOpen($event)" igoPointerPositionByKey [pointerPositionByKeyDelay]="500"
[pointerPositionByKeyCode]="17" (pointerPositionByKeyCoord)="onPointerSearch($event)">
<igo-zoom-button [map]="map" color="primary"></igo-zoom-button>
</igo-map-browser>

<igo-panel title="Search">
<igo-search-bar
(pointerSummaryStatus)="onPointerSummaryStatusChange($event)"
[searchSettings]="true"
(change)="onSearchTermChange($event)"
(searchTermChange)="onSearchTermChange($event)"
(search)="onSearch($event)"
(clearFeature)="removeFeatureFromMap()">
(clearFeature)="removeFeatureFromMap()"
(searchSettingsChange)="onSearchSettingsChange()">
</igo-search-bar>

<igo-search-results
[store]="searchStore"
[term]="term"
placeholder="false"
[settingsChange$]="settingsChange$"
(resultFocus)="onResultFocus($event)"
(resultSelect)="onResultFocus($event)">
(resultSelect)="onResultFocus($event)"
(moreResults)="onSearch($event)">
<ng-template #igoSearchItemToolbar let-result="result">
<igo-search-add-button
[map]="map"
Expand Down
Loading