Hello

i want to remove the zoom control for my leaflet views in drupal but i don't find any settings for my task.

How do i remove the control bar?

i dont want any actions on mouseover

Comments

cecyle’s picture

Nobody has an idea?

rdeboer’s picture

Hi cecyle,

It is not available as a UI option, but you can set in the code.

File leaflet/leaflet.module, search for 'zoomControl' => TRUE, (near line 200).
Change TRUE to FALSE.

If you do not wish to "hack" the module this way, then you can implement your own hook_leaflet_map_info(), doing the same, see leaflet/leaflet.api.php for an example.

Or if you wish to be crude, CCS it out in your theme's style.css file. Something like this may work:

.leaflet-bar {
  display: none !important;
}

Rik

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

firoz2456’s picture

@RdeBoer Is there any way to change value for zoom control style ?
https://www.drupal.org/node/2634466