You are here

markerclusteroptions.inc.txt in Get Locations 7

@author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

See the examples in the download from https://github.com/Leaflet/Leaflet.markercluster

To provide options to markercluster copy this file to markerclusteroptions.inc and edit to suit your needs

File

modules/getlocations_leaflet/plugins/markercluster/markerclusteroptions.inc.txt
View source
  1. /**
  2. * @file
  3. * @author Bob Hutchinson http://drupal.org/user/52366
  4. * @copyright GNU GPL
  5. *
  6. * See the examples in the download from https://github.com/Leaflet/Leaflet.markercluster
  7. *
  8. * To provide options to markercluster copy this file to markerclusteroptions.inc and edit to suit your needs
  9. *
  10. */
  11. function getlocations_leaflet_get_markerclusteroptions() {
  12. $markerclusteroptions = array(
  13. 'polygonOptions' => array(
  14. 'color' => '#008000',
  15. 'weight' => 2,
  16. 'opacity' => 0.75,
  17. 'fillColor' => '#C0C0C0',
  18. 'fillOpacity' => 0.25,
  19. ),
  20. # 'maxClusterRadius' => 80, //A cluster will cover at most this many pixels from its center
  21. );
  22. return $markerclusteroptions;
  23. }