mapbox / mapbox/mapbox-java

Wish add method of "turf.buffer"

Open
#1,351 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Java
Stars
438
Forks
117
PR merge metrics
No merged PRs in 30d

Description

In the past, I always got the buffer in the web interface through 'turf.js', but now, I need to get the buffer latitude and longitude array by Java, I tried calling 'turf.js' through Java (use ScriptEngineManager), but always report errors, like:"javax.script.ScriptException: ReferenceError: "Map" is not defined in "
I found a lot of information and knew to find this project!
please help me!

Contributor guide

Open the contributing guide

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 reviewing the Java SDK's existing API wrappers and the requested turf.js buffer behavior. Investigate how turf.js is being invoked through ScriptEngineManager and determine the intended Java-facing inputs and latitude/longitude output. Done means a defined buffer method with documented behavior and verification that the reported JavaScript error is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.