fin-gal opened a new issue, #34621:
URL: https://github.com/apache/superset/issues/34621
### Bug description
The description of the deck.gl Geojson chart states this:
The GeoJsonLayer takes in GeoJSON formatted data and renders it as
interactive polygons, lines and points (circles, icons and/or texts).
I am specifically interested in the point as an icon or text option.
However, it seems that it is not possible to set a point as an icon or text.
The text option would be highly useful because it can be used to annotate
points on the map.
Here is a sample data set i am using:
```
SELECT '{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-92.0060, 42.7128]
},
"properties": {
"name": "New York City"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[-122.4194, 37.7749],
[-118.2437, 34.0522],
[-87.6298, 41.8781],
[-74.0060, 40.7128]
]
},
"properties": {
"name": "Cross-country route"
}
}
]
}' as JSON
```
The point indeed appears but as a circle and I don't see how to turn it into
an icon or text.
Looking at [deck.gl's
documentation](https://deck.gl/docs/api-reference/layers/geojson-layer#pointtype),
it seems that the `pointType` option has to be set at the level of the
`GeoJsonLayer`.
So I'm not sure how this is supposed to modified since the geojson column we
provide only provides the features but not the level above setting for the
geojson layer tiself.
Unless I'm confused and there's a way of including it in the json.
### Screenshots/recordings
_No response_
### Superset version
5.0.0
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [x] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]