Open waxlamp opened 9 years ago
this is an interesting idea. Are you thinking that the DOM element would be for each mark (where mark is a circle)?
Something like that. To avoid performance/memory issues, these DOM elements could/should be transient. I thought of this because I recently adapted the Tangelo Flickr demo to use GeoJS, and I was prevented from using a GL feature layer (which I wanted because I could then increase the amount of data I handle) because I wanted to keep my Bootstrap popovers in the demo. I imagined an API for the GL feature layer that would abstractly present me with a DOM element on, e.g., mouseover, that I could then use to hang a popover on. This seems better than replicating every DOM-enabled feature on the GL side as demand for them appears, which is a task of Sisyphean proportions.
The idea is to emulate DOM for the GL layer.
Basically, on certain mouse events (
mouseover
etc.) the system could manufacture a DOM element to hang DOM-based features on (e.g., Bootstrap popovers). The config for this behavior could include such things asshow
,hide
, anddelay
properties http://getbootstrap.com/javascript/#popovers-usage)This would be a very general way to bridge JavaScript features over into the GL layer. Performance plus fanciness :raised_hand::collision: