Skip to content

Polygons don't render (correctly) #39

Open
@wendywangwwt

Description

@wendywangwwt

Hi,

Thanks for working on such an amazing package! I have a bunch of layers of data to render on county level so wanted to reduce the map loading time and came across this package.

I was checking out the demos and tried this one: https://github.com/r-spatial/leafgl/blob/master/experiments/alabama_glify.R

Everything works fine (I mean there was no error when I ran the code) but the polygons didn't show up on the map:
Screen Shot 2020-04-17 at 18 03 25

I modified the 100k polygons on a map demo by using my shapefile, and got into a slightly different but probably related issue that the polygons don't show different rgb colors:
Screen Shot 2020-04-17 at 18 08 06
I'm not sure what the rgb color should be so I tried both the original rgb colors (0~255) and the original values divided by 255. Both gave the same all green-ish color on the map.

Can you pleas suggest if I misused any of the configurations? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions