Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add a callback when creating markers #38

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments
Open

Enhancement: Add a callback when creating markers #38

GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Can you add a callback that allows for customized processing of the placemark 
for a marker?  I don't want to replicate everything you do, just add/change a 
few items.

perhaps, just before the infoWindow opening event handler, add a callback:

  if (!!parserOptions.pmParseMk) parserOptions.pmParseMk(marker, placemark);
   // Infowindow-opening event handler
    google.maps.event.addListener(marker, 'click', function() {
    this.infoWindow.close();
        marker.infoWindow.setOptions(infoWindowOptions);
    this.infoWindow.open(this.map, this);
    });



Original issue reported on code.google.com by [email protected] on 28 Sep 2011 at 2:28

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

No branches or pull requests

1 participant