It will be great to allow other modules to get access to the map object using jQuery's trigger method.

Comments

aleix created an issue. See original summary.

aleix’s picture

StatusFileSize
new1.3 KB

With the patch one can be hanged to trigger event this way:

    $(document).on( "mapbox-gl.map", function( map, mapData, mapId ) {
      alert( mapData + "\n" + mapId );
    });
aleix’s picture

StatusFileSize
new417 bytes

I am sorry, the previous patch was for another project... attaching correct one

imclean’s picture

Makes sense, thanks.

  • imclean committed 5f7da6a on 8.x-1.x authored by aleix
    Issue #2980762 by aleix: allow other modules to get access to the map
    
imclean’s picture

Status: Active » Fixed

We're not using this much at the moment but it might be worth creating a release anyway.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.