Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -192,6 +192,7 @@ |
193 | 193 | 'maps-googlemaps3-par-fusiontables' => 'IDs of Google Fusion Tables which should be loaded onto the map.', |
194 | 194 | 'maps-googlemaps3-par-tilt' => 'Tilt for the Map when using Google Maps.', |
195 | 195 | 'maps-googlemaps3-par-kmlrezoom' => 'Rezoom the map after the KML layers have been loaded.', |
| 196 | + 'maps-googlemaps3-par-poi' => 'Show points of intesrt.', |
196 | 197 | |
197 | 198 | // OpenLayers |
198 | 199 | 'maps-openlayers-par-controls' => 'The controls to place on the map.', |
Index: trunk/extensions/Maps/Maps_Settings.php |
— | — | @@ -231,6 +231,9 @@ |
232 | 232 | # Can be obtained at: https://code.google.com/apis/loader/signup.html |
233 | 233 | # This key is needed when using Google Earth. |
234 | 234 | $egGoogleJsApiKey = ''; |
| 235 | + |
| 236 | + # Show points of interest or not. |
| 237 | + $egMapsShowPOI = true; |
235 | 238 | |
236 | 239 | |
237 | 240 | # Google Maps |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/jquery.googlemap.js |
— | — | @@ -169,6 +169,17 @@ |
170 | 170 | |
171 | 171 | var map = new google.maps.Map( this.get( 0 ), mapOptions ); |
172 | 172 | this.map = map; |
| 173 | + |
| 174 | + if ( options.poi === false ) { |
| 175 | + map.setOptions( { styles: [ |
| 176 | + { |
| 177 | + featureType: "poi", |
| 178 | + stylers: [ |
| 179 | + { visibility: "off" } |
| 180 | + ] |
| 181 | + } |
| 182 | + ] } ); |
| 183 | + } |
173 | 184 | |
174 | 185 | if ( !options.locations ) { |
175 | 186 | options.locations = []; |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/Maps_GoogleMaps3.php |
— | — | @@ -152,6 +152,10 @@ |
153 | 153 | $params['kmlrezoom'] = new Parameter( 'kmlrezoom', Parameter::TYPE_BOOLEAN ); |
154 | 154 | $params['kmlrezoom']->setDefault( $GLOBALS['egMapsRezoomForKML'], false ); |
155 | 155 | $params['kmlrezoom']->setMessage( 'maps-googlemaps3-par-kmlrezoom' ); |
| 156 | + |
| 157 | + $params['poi'] = new Parameter( 'poi', Parameter::TYPE_BOOLEAN ); |
| 158 | + $params['poi']->setDefault( $GLOBALS['egMapsShowPOI'], false ); |
| 159 | + $params['poi']->setMessage( 'maps-googlemaps3-par-poi' ); |
156 | 160 | } |
157 | 161 | |
158 | 162 | /** |