Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove attribution to layer #585

Merged
merged 3 commits into from
Jan 10, 2018
Merged

remove attribution to layer #585

merged 3 commits into from
Jan 10, 2018

Conversation

guzhongren
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Jan 10, 2018

Codecov Report

Merging #585 into master will increase coverage by <.01%.
The diff coverage is 90.9%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #585      +/-   ##
==========================================
+ Coverage   88.38%   88.39%   +<.01%     
==========================================
  Files         142      142              
  Lines       12334    12336       +2     
==========================================
+ Hits        10901    10904       +3     
+ Misses       1433     1432       -1
Impacted Files Coverage Δ
src/layer/Layer.js 92.22% <ø> (ø) ⬆️
src/map/Map.js 86.53% <ø> (ø) ⬆️
src/control/Control.Attribution.js 91.3% <90.9%> (+5.59%) ⬆️
src/renderer/geometry/VectorRenderer.js 89.05% <0%> (-1.46%) ⬇️
src/core/util/resource.js 88.97% <0%> (+0.78%) ⬆️
src/control/Control.js 95% <0%> (+1.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d9119a...31a796c. Read the comment docs.

* var map = new maptalks.Map('map', {
* center: [-0.113049, 51.498568],
* zoom: 14,
* attribution: {
Copy link
Contributor

@wsw0108 wsw0108 Jan 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以是boolean类型,如果为true,不写content,会显示maptalks的信息,如果写了就会有自定义的信息;如果为false,则不显示attribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants