Issue encountered while using the @watergis/mapbox-gl-export library (version 1.2.7) to generate a PDF from the map #145020
Unanswered
hrutikworkspace
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
1] My project is based on TypeScript, and I am using the @watergis/mapbox-gl-export library (version 1.2.7) to download maps.
2] When I click the "Generate" button to download the map, an error appears in the console, and I cannot download the file.
3] The code is provided below.
4] Below is the relevant portion of my package.json file, showing only the packages related to this issue.
"dependencies": { "@deck.gl/core": "8.9.35", "@deck.gl/layers": "8.9.35", "@deck.gl/react": "8.9.35", "@watergis/mapbox-gl-export": "^1.2.7", "mapbox-gl": "3.2.0", "typescript": "^5.3.3", "react-map-gl": "7.1.6", }
5] Attached is a screenshot of the error with a brief description.(https://i.sstatic.net/9CspSKN7.png)
6] I am passing a valid token from .env file
7] I tried using the latest version of the @watergis/mapbox-gl-export library (version 3.5.4). However, when I used it, I encountered a compile-time error. Please see the error details below.
Could not find module in path: '@watergis/mapbox-gl-export/css/styles.css'
Argument of type 'MapboxExportControl' is not assignable to parameter of type 'Control | IControl'.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions