maptalks / maptalks/maptalks.three

coordinate type is error,it should be Coordinate

Open
#299 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
HTML
Stars
650
Forks
138
PR merge metrics
No merged PRs in 30d

Description

If you report this error
![](https://user-images.githubusercontent.com/43472051/76717868-e8069e00-676f-11ea-8521-be8e7199165a.png)

you need

```js

import * as maptalks from 'maptalks';
import * as THREE from 'three';
import { ThreeLayer } from 'maptalks.three';
```

instead of

```js
//import * as maptalks from 'maptalks/dist/maptalks.js';
import * as maptalks from 'maptalks/dist/maptalks.min.js';
import * as THREE from 'three';
import { ThreeLayer } from 'maptalks.three';

```

Otherwise, the webpack will be packaged maptalks.es.js and maptalks.js/maptalks . min.js

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported webpack behavior with the two maptalks import paths shown in the issue, alongside the ThreeLayer and three.js imports. Compare the resulting type error and packaged files, including maptalks.es.js and the dist builds. Done means the intended import path and Coordinate type behavior are clearly established and covered by a reproducible check.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, three.js, webpack
Domain
build-system, computer-graphics, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.