Skip to content

Event binding doesn't seem to work #18

Description

@roborourke

Polygons that are overlaid appear as clickable but I can't seem to add click events using the google maps API:

overlay = new GeoJSON( data );
google.maps.event.addListener( overlay, 'click', function( e ) {
   console.log( e );
} );

I can't work out if there's a sub object I need to bind to. Nothing I've tried seems to bind the event.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions