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

Latest master change from Wykks/ngx-mapbox-gl #1

Merged
merged 27 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eddbda7
feat: update to mapbox-gl 1.12.0 (#253)
AnthonyMacKinnon Dec 8, 2020
7b50fd8
fix: Change many outputs to avoid confusion (fix #107)
Wykks Dec 12, 2020
a392148
docs: move docs to repository
Wykks Dec 12, 2020
ad18e4f
test: fix map test
Wykks Dec 12, 2020
33bb369
showcase: refactor whole app & add doc versionning
Wykks Dec 13, 2020
44720c4
chore: update and run prettier
Wykks Dec 13, 2020
0049a1d
docs: fix mgl-image example
Wykks Dec 13, 2020
7e14744
feat(mglDraggable): remove marker support
Wykks Dec 13, 2020
11f117d
showcase: fix incorrect import (& small layout issue)
Wykks Dec 13, 2020
f8a7698
fix(draggable): fix incorrect use of takeUntil
Wykks Dec 13, 2020
a8b7eea
feat: update to mapbox-gl 1.13.0
Wykks Dec 13, 2020
4b7e33e
test: fix layer test
Wykks Dec 13, 2020
2884683
chore(release): 5.0.0
Wykks Dec 13, 2020
9014c5f
build(deps): bump @mapbox/mapbox-gl-geocoder to ^4.0.0 and add type d…
Nosfit Jan 28, 2021
0e97c83
build(deps): use Angular 11 & mapbox-gl 2.0
Nosfit Jan 29, 2021
a672592
chore(release): 6.0.0
dmytro-gokun Jan 29, 2021
e4b058c
fix(deps): add @types/mapbox__mapbox-gl-geocoder (#274)
Nosfit Feb 3, 2021
e881ed1
chore(release): 6.0.1
dmytro-gokun Feb 3, 2021
5bc2639
fix: declare Position interface for geolocate-control (#276)
Nosfit Feb 9, 2021
f8d18fd
chore(release): 6.0.2
dmytro-gokun Feb 9, 2021
d0658ba
fix: Position interface (#278)
Nosfit Feb 9, 2021
09bbd65
chore(release): 6.0.3
dmytro-gokun Feb 9, 2021
14f3b96
build: update @types/mapbox-gl 2.0.3 -> 2.1.0 (#281)
Nosfit Feb 17, 2021
1932325
chore(release): 6.0.4
dmytro-gokun Feb 17, 2021
23ba3e0
doc: correct README.md on the subject of token being mandatory (#287)
DroidZed Mar 4, 2021
30a842e
build(deps): bump elliptic from 6.5.3 to 6.5.4 (#288)
dependabot[bot] Mar 9, 2021
7169362
build(deps): update dependencies
Nosfit Mar 17, 2021
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
8 changes: 1 addition & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"printWidth": 120,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true,
"arrowParens": "always"
"singleQuote": true
}
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,61 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [6.0.4](https://github.com/Wykks/ngx-mapbox-gl/compare/v6.0.3...v6.0.4) (2021-02-17)

### [6.0.3](https://github.com/Wykks/ngx-mapbox-gl/compare/v6.0.2...v6.0.3) (2021-02-09)

### Bug Fixes

- Position interface ([#278](https://github.com/Wykks/ngx-mapbox-gl/issues/278)) ([d0658ba](https://github.com/Wykks/ngx-mapbox-gl/commit/d0658bac64b18cc6132697b7ecbecc076e25d06d))

### [6.0.2](https://github.com/Wykks/ngx-mapbox-gl/compare/v6.0.1...v6.0.2) (2021-02-09)

### Bug Fixes

- declare Position interface for geolocate-control ([#276](https://github.com/Wykks/ngx-mapbox-gl/issues/276)) ([5bc2639](https://github.com/Wykks/ngx-mapbox-gl/commit/5bc263949bb975604a177a249bec0f4483fa0395))

### [6.0.1](https://github.com/Wykks/ngx-mapbox-gl/compare/v6.0.0...v6.0.1) (2021-02-03)

### Bug Fixes

- **deps:** add @types/mapbox\_\_mapbox-gl-geocoder ([#274](https://github.com/Wykks/ngx-mapbox-gl/issues/274)) ([e4b058c](https://github.com/Wykks/ngx-mapbox-gl/commit/e4b058c54b36871ce0c57991862d2e5668147793))

## [6.0.0](https://github.com/Wykks/ngx-mapbox-gl/compare/v5.0.0...v6.0.0) (2021-01-29)

### ⚠ BREAKING CHANGES

- Updating mapbox-gl from 1.1.0 to 2.0.1 may break existing code
- Dropped Angular 8 support

### Features

- Update to mapbox-gl 2.0.1
- Add Angular 11 support

## [5.0.0](https://github.com/Wykks/ngx-mapbox-gl/compare/v4.8.1...v5.0.0) (2020-12-13)

### ⚠ BREAKING CHANGES

- **mglDraggable:** Remove marker support for mglDraggable (use draggable input instead)
- Remove undocumented resize API
- Updating mapbox-gl from 1.1.0 to 1.12.0 may cause breaking change

### Features

- update to mapbox-gl 1.13.0 ([a8b7eea](https://github.com/Wykks/ngx-mapbox-gl/commit/a8b7eeaf8620affffd19a9883ca1d350c3d76b79))
- **mglDraggable:** remove marker support ([7e14744](https://github.com/Wykks/ngx-mapbox-gl/commit/7e1474424fcadaf3b101a6922d80674bab222767))
- update to mapbox-gl 1.12.0 ([#253](https://github.com/Wykks/ngx-mapbox-gl/issues/253)) ([eddbda7](https://github.com/Wykks/ngx-mapbox-gl/commit/eddbda75369e5096bca2b6edc4a66a90a909694b))

### Bug Fixes

- **draggable:** fix incorrect use of takeUntil ([f8a7698](https://github.com/Wykks/ngx-mapbox-gl/commit/f8a7698ad585bd8f3974023ec42a3e7dd13618e8))
- Change many outputs to avoid confusion (fix [#107](https://github.com/Wykks/ngx-mapbox-gl/issues/107)) ([7b50fd8](https://github.com/Wykks/ngx-mapbox-gl/commit/7b50fd839289d7f0fe497b10d570061cbe3bc332))

### showcase

- refactor whole app & add doc versionning ([33bb369](https://github.com/Wykks/ngx-mapbox-gl/commit/33bb369e91f6fcf16793b8370bcfd29d91fd885f))

### [4.8.1](https://github.com/Wykks/ngx-mapbox-gl/compare/v4.8.0...v4.8.1) (2020-07-24)

### Bug Fixes
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Include the following components:
- [mgl-geojson-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-geojson-source-mapbox-gl-style-spec)
- [mgl-canvas-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-canvas-source-mapbox-gl-style-spec)
- [mgl-image-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-image-source-mapbox-gl-style-spec)
- [mgl-raster-dem-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-raster-dem-source-mapbox-gl-style-spec)
- [mgl-raster-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-raster-source-mapbox-gl-style-spec)
- [mgl-vector-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-vector-source-mapbox-gl-style-spec)
- [mgl-video-source](https://github.com/Wykks/ngx-mapbox-gl/wiki/API-Documentation#mgl-video-source-mapbox-gl-style-spec)
Expand Down Expand Up @@ -94,7 +95,8 @@ export class AppModule {}

How to get a Mapbox token: https://www.mapbox.com/help/how-access-tokens-work/

Note: `mapbox-gl` can work without a token, if you have your own source, for example: https://stackblitz.com/edit/ngx-mapbox-gl-without-token
Note: `mapbox-gl` cannot work without a token anymore.
If you want to keep using their services then make a free account, generate a new token for your application and use it inside your project.

You can use https://github.com/klokantech/tileserver-gl to serve vector tiles.

Expand All @@ -104,7 +106,14 @@ Display a map:
import { Component } from '@angular/core';

@Component({
template: ` <mgl-map [style]="'mapbox://styles/mapbox/streets-v9'" [zoom]="[9]" [center]="[-74.5, 40]"> </mgl-map> `,
template: `
<mgl-map
[style]="'mapbox://styles/mapbox/streets-v9'"
[zoom]="[9]"
[center]="[-74.5, 40]"
>
</mgl-map>
`,
styles: [
`
mgl-map {
Expand Down Expand Up @@ -166,7 +175,9 @@ export interface IMyLibMapModuleConfig {
imports: [CommonModule, NgxMapboxGLModule],
})
export class MyLibMapModule {
static forRoot(config: IMyLibMapModuleConfig): ModuleWithProviders<MyLibMapModule> {
static forRoot(
config: IMyLibMapModuleConfig
): ModuleWithProviders<MyLibMapModule> {
return {
ngModule: MyLibMapModule,
providers: [
Expand Down
29 changes: 22 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "mgl",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-mapbox-gl/tsconfig.lib.json",
"project": "projects/ngx-mapbox-gl/ng-package.json"
Expand All @@ -33,7 +33,10 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["projects/ngx-mapbox-gl/tsconfig.lib.json", "projects/ngx-mapbox-gl/tsconfig.spec.json"],
"tsConfig": [
"projects/ngx-mapbox-gl/tsconfig.lib.json",
"projects/ngx-mapbox-gl/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"],
"format": "stylish"
}
Expand All @@ -50,7 +53,11 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": ["@mapbox/mapbox-gl-geocoder", "@mapbox/mapbox-sdk", "suggestions"],
"allowedCommonJsDependencies": [
"@mapbox/mapbox-gl-geocoder",
"@mapbox/mapbox-sdk",
"suggestions"
],
"aot": true,
"outputPath": "dist/showcase",
"index": "projects/showcase/src/index.html",
Expand Down Expand Up @@ -83,7 +90,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand Down Expand Up @@ -119,13 +125,19 @@
"karmaConfig": "projects/showcase/karma.conf.js",
"styles": ["projects/showcase/src/styles.css"],
"scripts": [],
"assets": ["projects/showcase/src/favicon.ico", "projects/showcase/src/assets"]
"assets": [
"projects/showcase/src/favicon.ico",
"projects/showcase/src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["projects/showcase/tsconfig.app.json", "projects/showcase/tsconfig.spec.json"],
"tsConfig": [
"projects/showcase/tsconfig.app.json",
"projects/showcase/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"],
"format": "stylish"
}
Expand Down Expand Up @@ -159,5 +171,8 @@
}
}
},
"defaultProject": "ngx-mapbox-gl"
"defaultProject": "ngx-mapbox-gl",
"cli": {
"analytics": "2b945751-c795-4db1-b8ac-172907057b11"
}
}
Loading