Skip to content

Draw dot if no image provided in point bucket - #282

Merged
edenh merged 3 commits into
masterfrom
dot-shader
Feb 8, 2014
Merged

edenh merged 3 commits into
masterfrom
dot-shader

Conversation

@edenh

@edenh edenh commented Feb 7, 2014

Copy link
Copy Markdown
Contributor

If an image is not provided or not found in the sprite, draw a dot. Adds two new style attributes:

  • radius: the radius of the dot in pixels. Can be constant 5 or function ["exponential", 8, 1.0, 0.21, 4].
  • dotFade: percent to blur the edge of the circle. Can be constant from 0 to 1 or function ["linear", 13, 0, 1, 0, 1].

screen shot 2014-02-07 at 3 21 43 pm
heatmap

cc @kkaefer @ansis @mourner

@mourner

mourner commented Feb 7, 2014

Copy link
Copy Markdown
Member

There are some indentical lines in if and else blocks that could be put above, otherwise looks great! Maybe pick a better name for dotFade, e.g. blur?

@edenh

edenh commented Feb 8, 2014

Copy link
Copy Markdown
Contributor Author

Thanks @mourner. Changed to blur.

edenh added a commit that referenced this pull request Feb 8, 2014
Draw dot if no image provided in point bucket
@edenh
edenh merged commit b73e945 into master Feb 8, 2014
@edenh
edenh deleted the dot-shader branch February 8, 2014 00:21
@mourner

mourner commented Feb 8, 2014

Copy link
Copy Markdown
Member

Still needs a look afrom @ansis, I'm just poking around so far :)

@tmcw tmcw mentioned this pull request Jun 2, 2015
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.

2 participants