I'm building a map with lots of markers whose contents are loaded via AJAX with the rmtcallback/rmt options in the GMap API.

One of the elements I'm returning from my callback is a table, and I'd like to be able to make it sortable with JavaScript after it has loaded, but I currently have no way to be notified of when the content has finished loading.

It seems like it would be generally useful to offer an optional callback like this for developers to hook into in order to activate any dynamic parts of the returned markup for the popup. It could take the form of a new optional per-map key in the GMap array API, 'loadcallback' or something like that.

CommentFileSizeAuthor
#1 gmap_onloadcomplete_callback.patch404 bytesbenwei

Comments

benwei’s picture

StatusFileSize
new404 bytes

This is admittedly a hack, I've attached the three-line patch I'm using for this right now. Just set the 'onloadcomplete' key on the map array to a chunk of JS code to be executed whenever an info popup has finished loading.

podarok’s picture

Status: Active » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev