Class MapboxStaticMap.Builder method styleId is not accepting custom style

Open
#1,307 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start with the Javadoc for MapboxStaticMap.Builder.styleId and the supplied Mapbox Studio URL. Check how custom style URLs are accepted or incorporated into the static-map request, then verify whether the URL works or the documentation needs to explain the valid format.

Written by the indexing model from the issue text.

Description

jira-sync-complete

Hello,

De javadoc for the method styleId in the class Class MapboxStaticMap.Builder states
either one of the styles defined inside StaticMapCriteria or a custom url pointing to a styled map made in Mapbox Studio

However I have not managed to make a working URL with a custom style url.
It seems it is not accepting custom styles at all.

In case I am doing something wrong: please provide an example. I am using the url 'mapbox://styles/wardromanus/ckupckn5620p317mrlk4edwdv' as parameter.

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

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.

More from mapbox/mapbox-java

All issues in mapbox/mapbox-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.