这是indexloc提供的服务,不要输入任何密码
Skip to content

Event binding doesn't seem to work #18

@roborourke

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.

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