File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -87,3 +87,6 @@ FLEXI_GOOGLEMAP_FORCEITEMID="Force itemid"
8787FLEXI_GOOGLEMAP_FORCEITEMID_DESC =" You can use an specific itemid to manage display item after link."
8888FLEXI_GOOGLEMAP_RATIOMAP =" Map ratio"
8989FLEXI_GOOGLEMAP_RATIOMAP_DESC =" Change this setting in % to decreases the margin of bottom map. We need this option for responsive map"
90+
91+ FLEXI_GOOGLEMAP_STYLE =" Map style<br/><small><a href=" https://snazzymaps.com/" target=" _blank" >Gen style</a></small>"
92+ FLEXI_GOOGLEMAP_STYLE_DESC =" Copie Past json code done by snazzy mpas. BECARFULL USE [] AT START AND END OF VALUE"
Original file line number Diff line number Diff line change @@ -90,3 +90,6 @@ FLEXI_GOOGLEMAP_FORCEITEMID="Forcer l'itemid"
9090FLEXI_GOOGLEMAP_FORCEITEMID_DESC =" En insérant un itemid dans ce champ vous pourrez gérer l'affichage de la page affichée via le lien lire la suite."
9191FLEXI_GOOGLEMAP_RATIOMAP =" Ratio carte"
9292FLEXI_GOOGLEMAP_RATIOMAP_DESC =" Changer cette valeur en % pour diminuer ou augmenter la marge base de votre carte. Ce paramètre est nécessaire pour un affichage responsive"
93+
94+ FLEXI_GOOGLEMAP_STYLE =" Style carte<br/><small><a href=" https://snazzymaps.com/" target=" _blank" >Génération</a></small>"
95+ FLEXI_GOOGLEMAP_STYLE_DESC =" Copié coller le code json créé via snazzy mpas. ATTENTION VEILLEZ BIEN METTRE LES [] en début et fin"
Original file line number Diff line number Diff line change 157157 <option value =" 0" >FLEXI_GOOGLEMAP_NO</option >
158158 <option value =" 1" >FLEXI_GOOGLEMAP_YES</option >
159159 </field >
160+
161+ <field name =" style" type =" textarea" cols =" 38" rows =" 5" default =" [your style code]" label =" FLEXI_GOOGLEMAP_STYLE" description =" FLEXI_GOOGLEMAP_STYLE_DESC" />
160162
161163 <field name =" " type =" separator" default =" FLEXI_GOOGLEMAP_INFOWINDOWS" level =" level1" />
162164 <field
Original file line number Diff line number Diff line change 7272
7373$ ratiomap = $ params ->get ('ratiomap ' ,'' );
7474
75+ $ style = $ params ->get ('style ' ,'' );
76+
7577
7678
7779jimport ( 'joomla.application.component.controller ' );
198200 var icons = [<?php echo $ markerdisplay ; ?> ]
199201 var iconsLength = icons.length;
200202
201-
202203 var map = new google.maps.Map(document.getElementById('map'), {
203204 zoom: 16,
204205 center: new google.maps.LatLng(-37.92, 151.25),
205206 mapTypeId: google.maps.MapTypeId.<?php echo $ maptype ;?> ,
206207 mapTypeControl: false,
207208 streetViewControl: false,
208209 panControl: false,
210+ styles: <?php echo $ style ; ?> ,
211+
209212 zoomControlOptions: {
210213 position: google.maps.ControlPosition.LEFT_BOTTOM
211214 }
You can’t perform that action at this time.
0 commit comments