Current release: 6.1.5
• For EE2 EE3 EE4 EE5
This is a legacy addon! This module has been replaced by Maps. No more new features will add to this module, only bugfixes.
Gmaps - Manually show/hide markers
Amsterdam Rotterdam Den-Haag
ExpressionEngine Code
Amsterdam Rotterdam Den-Haag {exp:gmaps:init} {exp:gmaps:map width="100%" center:address="holland" zoom="9" } {gmaps:add_marker address="amsterdam" keys="amsterdam" } {gmaps:add_marker address="rotterdam" keys="rotterdam" } {gmaps:add_marker address="den-haag" keys="den-haag" } {/exp:gmaps:map} $(function(){ $('.checkbox').click(function(){ //show marker if($(this).is(':checked')) { EE_GMAPS.api('showMarker', { mapID : 'ee_gmap_1', key : $(this).val() }); //hide } else { EE_GMAPS.api('hideMarker', { mapID : 'ee_gmap_1', key : $(this).val() }); } }); });