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

Fixing language issue with symbol layers #75

Merged
merged 15 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
rules: {
"@typescript-eslint/ban-ts-comment": "warn",
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "warn",
},
ignorePatterns: tsConfig.exclude,
};
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ docsmd
images
scripts
test
demos
demos
src
dist/*umd*
CHANGELOG.md
colorramp.md
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
### Bug Fixes
### Others

## 2.0.0
### New Features
- Updating with MapLibre GL JS v4.1
- Added client-side caching mechanism for tiles and fonts
### Bug Fixes
- Language switching now only occurs on layers fueled by a MapTiler Cloud source
### Others
- Removed `Map.loadImageAsync()` as MapLibre's `.loadImage()` is now promise based.
- Added all the exports that are now exposed from MapLibre
- Adapted some newly exported classes to make them TypeScript-compatible with the `Map` classes from both MapLibre and MapTiler SDK

## 1.2.1
### New Features
- Elevation lookup at `maptilersdk.elevation` with the function `.at()`, `.batch()` and for geojson payloads. From the update of the MapTiler Client library
Expand Down Expand Up @@ -134,7 +145,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 `.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.

Expand Down
Binary file added images/screenshots/lake-louise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 73 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/sdk",
"version": "1.2.1",
"version": "2.0.0",
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
"module": "dist/maptiler-sdk.mjs",
"types": "dist/maptiler-sdk.d.ts",
Expand Down Expand Up @@ -74,10 +74,10 @@
"xmldom": "^0.6.0"
},
"dependencies": {
"@maptiler/client": "^1.8.0",
"@maptiler/client": "^1.8.1",
"events": "^3.3.0",
"js-base64": "^3.7.4",
"maplibre-gl": "3.6.2",
"maplibre-gl": "4.1.2",
"uuid": "^9.0.0"
}
}
Loading
Loading