Title: Feature Request: Add plotly event listeners to Mapbox layers · Issue #1966 · plotly/plotly.js · GitHub
Open Graph Title: Feature Request: Add plotly event listeners to Mapbox layers · Issue #1966 · plotly/plotly.js
X Title: Feature Request: Add plotly event listeners to Mapbox layers · Issue #1966 · plotly/plotly.js
Description: I didn't realize this before but it seems there are two ways to add a layer to a mapbox map: Scattermapbox(lat=lats, lon=lons, etc.) (ref) layout(mapbox=(layers={source='data.geojson', sourcetype='geojson') (ref) Since the first option d...
Open Graph Description: I didn't realize this before but it seems there are two ways to add a layer to a mapbox map: Scattermapbox(lat=lats, lon=lons, etc.) (ref) layout(mapbox=(layers={source='data.geojson', sourcetype='...
X Description: I didn't realize this before but it seems there are two ways to add a layer to a mapbox map: Scattermapbox(lat=lats, lon=lons, etc.) (ref) layout(mapbox=(layers={source='data.geojson', ...
Opengraph URL: https://github.com/plotly/plotly.js/issues/1966
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Add plotly event listeners to Mapbox layers","articleBody":"I didn't realize this before but it seems there are two ways to add a layer to a mapbox map:\r\n1. `Scattermapbox(lat=lats, lon=lons, etc.)` ([ref](https://plot.ly/javascript/reference/#scattermapbox))\r\n2. `layout(mapbox=(layers={source='data.geojson', sourcetype='geojson')` ([ref](https://plot.ly/javascript/reference/#layout-mapbox-layers))\r\n\r\nSince the first option doesn't play well with Geojson (or [lines](https://github.com/plotly/plotly.js/issues/1960)), could plotly click, hover, select events be fired for layers created by the second option? \r\n\r\nMy motivation for this is to be able to create layers (in python) from geojson or vector tile source, but be able to attach plotly interactivity to the geometries.\r\n","author":{"url":"https://github.com/radumas","@type":"Person","name":"radumas"},"datePublished":"2017-08-22T18:12:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1966/plotly.js/issues/1966"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0c20731e-7e17-971d-a1f9-f05559303e4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A574:C58FE:1E626AE:290BA04:6A59942B |
| html-safe-nonce | 503174f87851dfab27683b592e3176f68c151abe1a597dae32386824288448b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTc0OkM1OEZFOjFFNjI2QUU6MjkwQkEwNDo2QTU5OTQyQiIsInZpc2l0b3JfaWQiOiI3MTgyMDAyNzQzMTY2OTk3NTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7c30eab33a3c319468d4dbd5a4fd562f1fd6ac384e295045f2524510a278c671 |
| hovercard-subject-tag | issue:252043864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/1966/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77adfa3d914c13b4edb006f0042a9792cf152c32c3ec32b2fc6f8cc97628d535/plotly/plotly.js/issues/1966 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77adfa3d914c13b4edb006f0042a9792cf152c32c3ec32b2fc6f8cc97628d535/plotly/plotly.js/issues/1966 |
| og:image:alt | I didn't realize this before but it seems there are two ways to add a layer to a mapbox map: Scattermapbox(lat=lats, lon=lons, etc.) (ref) layout(mapbox=(layers={source='data.geojson', sourcetype='... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | radumas |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width