maptalks / maptalks/maptalks.js

[feature request] Support icon color replacement

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

Nobody has claimed this yet.

question
Dominant language
HTML
Stars
4.5k
Forks
511
Avg merge
3d 58m
Merged PRs (30d)
1

Description

**maptalks's version and what browser you use?**
----

**Issue description**
----
支持`markerFill` 支持 `markerFile` 类型,现在可以通过`markerPath` 指定 `markerFill` 填充不同颜色,需要使图片类型也支持颜色填充(需要注意:markerFile对应的图片资源必须支持跨域)。

To Do List:
- [ ] Add label and assign to milestone
- [x] Coding
- [ ] optimization
- [ ] Test
- [ ] Doc update
- [ ] Whats new update

**Please provide a reproduction URL (on any jsfiddle like site)**
----
效果示例:https://codepen.io/sakitam-fdd/pen/oNgqYYY?editors=0010

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 with the linked CodePen example and search the repository for markerFill, markerFile, and markerPath handling. Verify how image markers are rendered and how cross-origin image resources are loaded. Done means image markers accept color replacement consistently, with tests and documentation updated as listed in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.