Closed andybak closed 4 years ago
Ha! I just checked the examples and I was mistaken. The import format is flexible as you can put whatever you want in getPosition...
In which case I think this is a documentation problem (or a problem with my brain).
On https://github.com/visgl/deck.gl/blob/master/docs/layers/hexagon-layer.md
I read the part near "Data format:" to imply that the data format was fixed and had to be in this format. Maybe simply removing the words "Data format:" or phrasing it as "Example Data format:" would be better?
Feel free to close this if you think I'm just especially dumb.
The more I think about it, the stupider this seems. I'll close this. :)
Target Use case
Avoid unnecessary transforms on the server-side
Proposed feature
Aggregation layers should accept multipoint.
i.e. in addition to the current format:
it could also accept geojson such as:
or even just the inner coord array:
I suspect this is a more natural output format to generate server-side. I can't figure out a way to generate the existing format in GeoDjango without iterating in Python or writing an SQL query that does string formatting.
Also - it's more compact.