By Schnitzer on
Hello dear Drupalcom,
i using the leaflet markercluster module wich put the leaflet_markercluster.drupal.js on sourecode. On node-view i want to disable the plugin because there are only one gpx-track and with cluster it dont work.
I tried to wrap the code in leaflet_markercluster.drupal.js with a jQuery if() to find out if body has the class i need but at this point it is too early get this info because dom is not ready yet. If i wait until doc is ready its t late to manipulate the Drupal.behaviors.leaflet object with the cluster plugin.
Is there a easy way to wrap it in the module with variables from drupal instead from dom?
thx