Skip to content

Commit

Permalink
Correction for snazzy style
Browse files Browse the repository at this point in the history
  • Loading branch information
Berges Yannick committed Aug 10, 2016
1 parent 605a055 commit 1487bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod_flexigooglemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<option value="1">FLEXI_GOOGLEMAP_YES</option>
</field>

<field name="style" type="textarea" cols="38" rows="5" default="[your style code]" label="FLEXI_GOOGLEMAP_STYLE" description="FLEXI_GOOGLEMAP_STYLE_DESC"/>
<field name="mapstyle" type="textarea" default="[your style code]" label="FLEXI_GOOGLEMAP_STYLE" description="FLEXI_GOOGLEMAP_STYLE_DESC" cols="38" rows="5" filter="raw"/>

<field name="" type="separator" default="FLEXI_GOOGLEMAP_INFOWINDOWS" level="level1" />
<field
Expand Down
3 changes: 3 additions & 0 deletions tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
$apikey = $params->get('apikey', '' );
$maptype = $params->get('maptype', '' );
$maxzoommarker = $params->get('maxzoommarker', '' );
$mapstyle = $params->get('mapstyle','');
$mapstyle = substr($mapstyle,1,-1); //Remove[] at end and start

$clustermode = $params->get('clustermode', '' );
$gridsize = $params->get('gridsize', '' );
Expand Down Expand Up @@ -214,6 +216,7 @@
mapTypeControl: false,
streetViewControl: false,
panControl: false,
styles:[<?php echo $mapstyle; ?>],
zoomControlOptions: {
position: google.maps.ControlPosition.LEFT_BOTTOM
}
Expand Down

0 comments on commit 1487bd2

Please sign in to comment.