Skip to content

almost there! #138

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

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft
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
8 changes: 2 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,19 @@
},
"plugins": ["@typescript-eslint/eslint-plugin", "prettier"],
"extends": [
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier/@typescript-eslint"
"plugin:prettier/recommended"
],
"ignorePatterns": ["dist", "webpack.config.js"],
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", { "objects": "never" }],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-console": "off",
"no-multiple-empty-lines": "error",
"no-unused-vars": ["error", { "args": "none" }],
"no-var": "error",
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"object-curly-spacing": ["error", "always", { "objectsInObjects": true }],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ georaster-layer-for-leaflet.*

# backup files
*bak*

*.tgz
5 changes: 4 additions & 1 deletion ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ new GeoRasterLayer({
mask: { type: "FeatureCollection", features: [ /* .. */] }, // a GeoJSON for the world's oceans
mask_strategy: "outside"
});
```
```

# Turbo Mode
You can enable turbo mode, which will in some cases lead to better performance. However, it is experimental, so should be tested first on your data before using in production. Internally, it uses [proj-turbo](https://github.com/DanielJDufour/proj-turbo).
88 changes: 53 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "georaster-layer-for-leaflet",
"version": "3.10.0",
"version": "4.1.0-0",
"description": "Display GeoTIFFs and soon other types of raster on your Leaflet Map",
"type": "module",
"main": "dist/v3/webpack/bundle/georaster-layer-for-leaflet.min.js",
Expand All @@ -21,20 +21,21 @@
"clean": "rimraf dist",
"b": "npm run build",
"build:ts:source": "npx mkdirp ./dist/v3/ts/source/. && cp -r ./src/* ./dist/v3/ts/source/.",
"build:ts:types": "tsc --emitDeclarationOnly",
"build:ts:types": "tsc --emitDeclarationOnly --moduleResolution node --skipLibCheck",
"build:babel": "npm run build:babel:esm && npm run build:babel:cjs",
"build:babel:esm": "npx babel --extensions \".ts\" --plugins @babel/plugin-proposal-export-namespace-from --plugins @babel/plugin-proposal-optional-chaining --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir ./dist/v3/babel/esm",
"build:babel:cjs": "npx babel --extensions \".ts\" --plugins @babel/plugin-transform-modules-commonjs --plugins @babel/plugin-proposal-optional-chaining --plugins @babel/plugin-proposal-export-namespace-from --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir dist/v3/babel/cjs",
"build:babel:esm": "npx babel --extensions \".ts\" --plugins @babel/plugin-transform-export-namespace-from --plugins @babel/plugin-transform-optional-chaining --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir ./dist/v3/babel/esm",
"build:babel:cjs": "npx babel --extensions \".ts\" --plugins @babel/plugin-transform-modules-commonjs --plugins @babel/plugin-transform-optional-chaining --plugins @babel/plugin-transform-export-namespace-from --presets @babel/preset-typescript ./src/georaster-layer-for-leaflet.ts --out-dir dist/v3/babel/cjs",
"build:webpack:bundle": "WEBPACK_OUTPUT_PATH=\"$PWD/dist/v3/webpack/bundle/\" webpack",
"build:webpack:lite": "LITE=true WEBPACK_OUTPUT_PATH=\"$PWD/dist/v3/webpack/lite/\" webpack",
"clean:webpack:bundle": "rimraf $PWD/dist/v3/webpack/bundle",
"copy:legacy": "npm run copy:legacy:min && npm run copy:legacy:lite && npm run copy:legacy:cjs && npm run copy:legacy:esm && npm run copy:legacy:types",
"copy:legacy:min": "cp ./dist/v3/webpack/bundle/* ./dist/.",
"copy:legacy:lite": "cp ./dist/v3/webpack/lite/* ./dist/.",
"copy:legacy:cjs": "cp ./dist/v3/babel/cjs/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.bundle.js",
"copy:legacy:esm": "cp ./dist/v3/babel/esm/georaster-layer-for-leaflet.js ./dist/georaster-layer-for-leaflet.js",
"copy:legacy:types": "cp -r ./dist/v3/ts/types/* ./dist/.",
"build": "npm run clean && npm run build:ts:source && npm run build:ts:types && npm run build:babel:esm && npm run build:babel:cjs && npm run build:webpack:bundle && npm run build:webpack:lite && npm run copy:legacy",
"dev": "concurrently \"npm run serve\" \"npm run build:webpack:bundle:old -- --watch\" ",
"dev": "concurrently \"npm run serve\" \"npm run clean:webpack:bundle && npm run build:webpack:bundle -- --watch\" ",
"f": "npm run format",
"format": "prettier --write ./src/georaster-layer-for-leaflet.ts webpack.config.js && npm run fix",
"fix": "eslint ./src/georaster-layer-for-leaflet.ts --fix",
Expand Down Expand Up @@ -67,41 +68,58 @@
},
"homepage": "https://github.com/GeoTIFF/georaster-layer-for-leaflet#readme",
"dependencies": {
"@types/geojson": "^7946.0.10",
"@types/node": "^18.7.13",
"chroma-js": "^1.4.1",
"geo-extent": "^0.11.0",
"geocanvas": "^0.3.1",
"pixel-utils": "^0.7.0",
"proj4-fully-loaded": "^0.1.0",
"regenerator-runtime": "^0.13.9",
"reproject-bbox": "^0.4.1",
"snap-bbox": "^0.2.0",
"utm-utils": "^0.1.0"
"@types/geojson": "^7946.0.14",
"bbox-fns": "^0.20.2",
"fast-max": "^0.5.1",
"fast-min": "^0.4.0",
"geo-extent": "^1.5.0",
"geoaffine": "^0.2.0",
"georaster-stack": "^0.4.8",
"geotiff-epsg-code": "^0.3.1",
"geotiff-read-bbox": "^2.2.0",
"geowarp": "^1.26.1",
"geowarp-canvas": "^0.2.0",
"memoizee": "^0.4.15",
"pixel-utils": "^0.9.0",
"proj4": "^2.10.0",
"proj4-collect": "^0.0.2",
"proj4-fully-loaded": "^0.2.0",
"proj4-merge": "^0.1.1",
"regenerator-runtime": "^0.14.1",
"snap-bbox": "^0.5.0",
"spatial-reference-system": "^0.5.2",
"utm-utils": "^0.6.1",
"xdim": "^1.10.1"
},
"devDependencies": {
"@babel/cli": "^7.18.10",
"@babel/core": "^7.18.13",
"@babel/plugin-transform-template-literals": "^7.18.9",
"@babel/preset-env": "^7.18.10",
"@babel/preset-typescript": "^7.18.6",
"@types/chroma-js": "^2.1.4",
"@types/leaflet": "^1.7.11",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-loader": "^8.2.5",
"concurrently": "^5.3.0",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@babel/plugin-transform-optional-chaining": "^7.23.4",
"@babel/plugin-transform-template-literals": "^7.23.3",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@types/leaflet": "^1.9.8",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"babel-loader": "^9.1.3",
"concurrently": "^8.2.2",
"envisage": "^0.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"geojson": "^0.5.0",
"georaster": "^1.6.0",
"leaflet": "^1.9.4",
"mkdirp": "^3.0.1",
"null-loader": "^4.0.1",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"typescript": "^4.8.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
"prettier": "^3.2.5",
"reproject-geojson": "^0.5.0",
"rimraf": "^5.0.5",
"to-canvas": "^0.2.0",
"typescript": "^5.3.3",
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4"
},
"peerDependencies": {
"georaster": "*",
Expand Down
Loading