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

v1.2.0 #65

Merged
merged 65 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
052e204
setup full typescript support
Aug 16, 2023
47f53a4
primary language exists on construction
Aug 16, 2023
e440e0c
first review cleanup
Aug 16, 2023
82ea33e
second review cleanup
Aug 16, 2023
c51e746
Merge pull request #48 from maptiler/typescript-upgrades
jonathanlurie Aug 17, 2023
d4357cd
UP gitignore
jonathanlurie Aug 17, 2023
f7be93d
UP gitignore
jonathanlurie Aug 17, 2023
7bfc4c0
UP typedoc and config
jonathanlurie Aug 17, 2023
112497b
UP the prepare npm script is no longer copying demos to doc
jonathanlurie Aug 17, 2023
1720eca
FIX inheritance pattern of some Controls due to ML update
jonathanlurie Aug 17, 2023
ab066bb
FIX Marker now requires an option object
jonathanlurie Aug 17, 2023
3930252
WIP polyline layer helper
jonathanlurie Aug 18, 2023
2504e61
Merge pull request #49 from maptiler/dev-up-ml
jonathanlurie Aug 21, 2023
60468c4
Merge branch 'dev-v1.2.0' of https://github.com/maptiler/maptiler-sdk…
jonathanlurie Aug 21, 2023
587bbc6
REM log
jonathanlurie Aug 21, 2023
9dc4ef5
Merge branch 'dev-v1.2.0' into dev-add-polyline
jonathanlurie Aug 21, 2023
ce9e6ae
ADD adding a poliline layer
jonathanlurie Aug 21, 2023
041b689
mock the gpx/kml parser
jonathanlurie Aug 22, 2023
11c7b37
mock the gpx/kml parser
jonathanlurie Aug 22, 2023
47110f3
gpx and kml converters; better prettier support; upgrade packages; vi…
Aug 22, 2023
a840c26
Merge branch 'dev-v1.2.0' into converters
CraigglesO Aug 22, 2023
1b7662b
adjust package lock
Aug 22, 2023
cfbb36b
cleanup part 1
Aug 22, 2023
3a5edfe
cleanup part 2
Aug 23, 2023
20eaf6c
comment link error
Aug 23, 2023
c079e01
Merge pull request #50 from maptiler/converters
jonathanlurie Aug 23, 2023
aaef271
ADD actual gpx/kml converters
jonathanlurie Aug 23, 2023
e465ec2
FIX throwing when the string is not valid XML
jonathanlurie Aug 23, 2023
3f556b5
FIX gpx/kml now throwing if content was xml but not of gpx/kml kind
jonathanlurie Aug 23, 2023
1eb8418
ADD a function to convert from either gpx or kml
jonathanlurie Aug 23, 2023
3ed7692
ADD integrate KML/GPX parser to addPolyline method
jonathanlurie Aug 23, 2023
d45a81d
DOC added more comment
jonathanlurie Aug 23, 2023
53f6504
FIX DOMParser issues due to different behviors in Node (testing) and …
jonathanlurie Aug 23, 2023
0100437
ADD demos to use map.addPolyline
jonathanlurie Aug 23, 2023
e0021fd
ADD addPolyline examples
jonathanlurie Aug 23, 2023
99c8c8a
ENH better examples
jonathanlurie Aug 23, 2023
1671bf5
ENH linting
jonathanlurie Aug 23, 2023
96fa52f
Update src/Map.ts
jonathanlurie Aug 24, 2023
e064364
REM unnecessary @param and @return
jonathanlurie Aug 24, 2023
ff1968c
REM some unnecessary '?' to option objects
jonathanlurie Aug 24, 2023
f98cee7
ADD polyline blur and gap width options
jonathanlurie Aug 24, 2023
85d503d
ADD dash pattern interpreter into actual dash array
jonathanlurie Aug 24, 2023
e6a01f0
Update src/converters/xml.ts
jonathanlurie Aug 24, 2023
69d5ffa
Update src/Map.ts
jonathanlurie Aug 24, 2023
a1ae07c
ENH code readability
jonathanlurie Aug 24, 2023
43f31ba
Update src/converters/xml.ts
jonathanlurie Aug 24, 2023
8a4d133
Update src/tools.ts
jonathanlurie Aug 24, 2023
b46c1d3
ADD review from Craig
jonathanlurie Aug 24, 2023
87bf21f
Merge pull request #51 from maptiler/dev-add-polyline
jonathanlurie Aug 24, 2023
26f2b0c
ENH now supporting all the languages supported by OMT
jonathanlurie Aug 25, 2023
2a55f09
Merge pull request #52 from maptiler/dev-lang
jonathanlurie Aug 28, 2023
ae7f48f
REM geojson-validation
jonathanlurie Sep 4, 2023
d6a95ef
FIX example
jonathanlurie Sep 4, 2023
34e58ec
Merge pull request #53 from maptiler/dev-rem-valid
jonathanlurie Sep 4, 2023
bec5254
Support for Customize language (#58)
jonathanlurie Sep 29, 2023
3d4759e
Add polygon helper (#56)
jonathanlurie Sep 29, 2023
ca40a95
Add minimap control (#54)
CraigglesO Oct 11, 2023
e16bb50
Dev points (#59)
jonathanlurie Oct 12, 2023
5111caa
Dev points (#61)
jonathanlurie Oct 31, 2023
57e5134
TS moduleResolution is now "Bundler" (#62)
jonathanlurie Oct 31, 2023
93eba20
Update to Maplibre gl v3.5.2 (#63)
jonathanlurie Oct 31, 2023
c67e0a0
Merge branch 'main' into dev-v1.2.0
jonathanlurie Oct 31, 2023
b69dde6
VER v1.2.0
jonathanlurie Oct 31, 2023
06a26a3
ADD gh action for formatting and linting during PR
jonathanlurie Oct 31, 2023
3b6a278
ENH better linting and formatting rules
jonathanlurie Nov 1, 2023
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
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Objective
What is the goal?

## Description
What changed, how and why?

## Acceptance
How were changes tested?

## Checklist
- [ ] I have added relevant info to the CHANGELOG.md
24 changes: 24 additions & 0 deletions .github/workflows/format-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Format and Lint

on: [pull_request]

jobs:
format-and-lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Node.js dependencies
run: npm ci

- name: Formatting with Prettier
run: npm run format

- name: Linting with ESLint
run: npm run lint
145 changes: 94 additions & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,77 @@
# Changelog

## [v1.1.1](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.1.1)
- VER update to `[email protected]`

## [v1.1.0](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.1.0)
- VER updated from `[email protected]` to `[email protected]` (this includes the switch to WebGL2)
- UP made the few necessary changes acording to updating the ML v3. No braking change for SDK API
- FIX the MapTiler logo rel name and its nofollow feature
- ADD bringing back Map's `options.transformRequest` and `.setTransformRequest()`


## [v1.0.12](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.12)
- ADD a new language flag `Language.STYLE_LOCK` to force keep the language form the style and prevent any further update. Can be at a sigle map instance level (via constuctor option `language`) or via global config (`config.primaryLanguage`)
- FIX the fallback language was `{name:latin}`, it is now replaced by `{name}`, which is for the local name (present by default for many places while `latin` is less frequent).

## [v1.0.11](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.11)
- DOC update for `Map`'s `option.maptilerLogo` that was a bit unclear
- FIX now exporting `MaptilerNavigationControl`

## [v1.0.10](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.10)
- ADD terrain growing animation on enabling/disabling
- ADD `Map` custom event `loadWithTerrain`
- ADD `Map` lifecycle methods `.onLoadAsync()` and `.onLoadWithTerrainAsync()`
- DOC readme section was added about the event an methods above
- VER updated from `[email protected]` to `[email protected]`
- VER updated from `[email protected]` to `[email protected]`, which changes slightly the look of the reference documentation.
- VER updated from `[email protected]` to `[email protected]`
- VER updated from `[email protected]` to `[email protected]` as well as all the Rollup plugins

## [v1.0.9](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.9)
- FIX: if the geolocate option is missing from `Map` constructor, then it's considered `false`

- FIX: The instance types for the following MapLibre classes are now fully exported:
# MapTiler SDK Changelog

## DEVEL
### New Features
### Bug Fixes
### Others

## 1.2.0
### New Features
- Added the Minimap control https://github.com/maptiler/maptiler-sdk-js/pull/54
- Added vector layer helpers to create easier:
- point layer (https://github.com/maptiler/maptiler-sdk-js/pull/61)
- heatmap layer (https://github.com/maptiler/maptiler-sdk-js/pull/61)
- polyline layer, including parsing from GPX/KML (https://github.com/maptiler/maptiler-sdk-js/pull/51)
- polygon layer (https://github.com/maptiler/maptiler-sdk-js/pull/56)
- Add the `ColorRamp` class to create and customize color ramps, as well as `ColorRampCollection` with many predefined ones (as part of https://github.com/maptiler/maptiler-sdk-js/pull/61)
- Improved the language management for increased compatibility with [MapTiler Customize](https://cloud.maptiler.com/maps/editor/) (https://github.com/maptiler/maptiler-sdk-js/pull/58)
### Bug Fixes
- Fixed type export (https://github.com/maptiler/maptiler-sdk-js/pull/47)
### Others
- Upgrade to MapLibre v3.5.2 (https://github.com/maptiler/maptiler-sdk-js/pull/63)
- Update of TypeScript configuration `moduleResolution` to `Bundler` (https://github.com/maptiler/maptiler-sdk-js/pull/62)

## 1.1.2
### Bug Fixes
- Now using a fixed version of MapLibre GL. No longer use `^` because this caused issues as MapLibre made minor/patch update that were not backward compatible

## 1.1.1
### Others
- Update to `[email protected]`

## 1.1.0
### New Features
- Bringing back Map's `options.transformRequest` and `.setTransformRequest()`
### Bug Fixes
- Fixed the MapTiler logo rel name and its nofollow feature
- Made the few necessary changes acording to updating the ML v3. No braking change for SDK API
### Others
- Updated from `[email protected]` to `[email protected]` (this includes the switch to WebGL2)


## 1.0.12
### New Features
- Added a new language flag `Language.STYLE_LOCK` to force keep the language form the style and prevent any further update. Can be at a sigle map instance level (via constuctor option `language`) or via global config (`config.primaryLanguage`)
### Bug Fixes
- The fallback language was `{name:latin}`, it is now replaced by `{name}`, which is for the local name (present by default for many places while `latin` is less frequent).

## 1.0.11
### Bug Fixes
- Now exporting `MaptilerNavigationControl`
### Others
- Documentation update for `Map`'s `option.maptilerLogo` that was a bit unclear

## 1.0.10
### New Features
- Terrain growing animation on enabling/disabling
- Added `Map` custom event `loadWithTerrain`
- Added `Map` lifecycle methods `.onLoadAsync()` and `.onLoadWithTerrainAsync()`
### Others
- Readme section was added about the event an methods above
- Updated from `[email protected]` to `[email protected]`
- Updated from `[email protected]` to `[email protected]`, which changes slightly the look of the reference documentation.
- Updated from `[email protected]` to `[email protected]`
- Updated from `[email protected]` to `[email protected]` as well as all the Rollup plugins

## 1.0.9
### New Features
- Added new styles:
- `MapStyle.STREETS.NIGHT`
- `MapStyle.WINTER.DARK`
- `MapStyle.OUTDOOR.DARK`
### Bug Fixes
- If the geolocate option is missing from `Map` constructor, then it's considered `false`
- The instance types for the following MapLibre classes are now fully exported:
- `NavigationControl`
- `GeolocateControl`
- `AttributionControl`
Expand All @@ -55,8 +95,7 @@
- `VectorTileSource`
- `VideoSource`
- `MapMLGL`

- FIX: The following class have been extended to provide greater compatibility with SDK,s MapL
- The following class have been extended to provide greater compatibility with SDK,s MapL
- `Popup`
- `Marker`
- `Style`
Expand All @@ -75,40 +114,44 @@
- `FullscreenControl`
- `TerrainControl`

- ADD: new styles:
- `MapStyle.STREETS.NIGHT`
- `MapStyle.WINTER.DARK`
- `MapStyle.OUTDOOR.DARK`

## [v1.0.8](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.8)
- FIX: Since v1.0.7, the `Map` primary language (when custom) was no longer persistant on style update.
## 1.0.8
### Bug Fixes
- Since v1.0.7, the `Map` primary language (when custom) was no longer persistant on style update.

## [v1.0.7](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.7)
## 1.0.7
### New Features
- The `apiKey` can now be specified in the `Map` constructor (will propagate to `config`)
- The `language` can now be speficifed in the `Map` constructo (will **not** propagete to `config` and will apply only to this specific instance)
- `Map` now has the method `.getSdkConfig()` to retrieve the config object.
- `Map` now has the method `.getMaptilerSessionId()` to retrieve the MapTiler session ID

Both `.getSdkConfig()` and `.getMaptilerSessionId()` are handy for layers or control built outside of the SDK that still need some of the configuration to interact with the server. Those components do not always have access to the internal of the SDK (especially that the config is scoped) but can access to the `Map` instance to which they are added with the implementation of the `.onAdd()` method.

## [v1.0.6](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.6)
## 1.0.6
### New Features
- Now exposing `MaptilerGeolocateControl` for external initialization if needed
- Now exposing `MaptilerTerrain` for external initialization if needed

## [v1.0.5](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.5)
## 1.0.5
### New Features
- Terrain elevation is now using MapTiler's `terrain-rgb-v2`

## [v1.0.4](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.4)
## 1.0.4
### Others
- Improved the geolocate control behavior by not zooming out

## [v1.0.3](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.3)
## 1.0.3
### Bug Fixes
- Fixed the usage of relative path style JSON (in `Map` constructor and `.setStyle()`)

## [v1.0.2](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.2)
## 1.0.2
### Bug Fixes
- Fixed the dependency scheme of MapLibre import.

## [v1.0.1](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.1)
## 1.0.1
### Others
- Reducing the NPM size by ignoring documentation images

## [v1.0.0](https://github.com/maptiler/maptiler-sdk-js/releases/tag/v1.0.0)
## 1.0.0
### Others
- First public version!
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/sdk",
"version": "1.1.2",
"version": "1.2.0",
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
"module": "dist/maptiler-sdk.mjs",
"types": "dist/maptiler-sdk.d.ts",
Expand Down
Loading