SHARE
TWEET

Untitled

a guest Sep 11th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ = jQuery;
  2. $(document.body).on('infowindowopen.wpgmza', function (event) {
  3. var marker = event.target.mapObject;
  4. for( var i = 0; i < marker.categories; i++){
  5. var category = WPGMZA.categories.getCategoryByID( marker.categories[i] );
  6. console.log(category);
  7. if (category) {
  8. var display = category.name;
  9. $('body').find('.wpgmza_infowindow_title').after('<div class="wpgmza_infowindow_categories">' + display + '</div>');
  10. }
  11. }
  12. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top