Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GeoMashup.addAction( 'loadedMap', function( properties, map ) {
- var gmap = map.getMap();
- var styles = [
- {
- "featureType": "water",
- "elementType": "geometry.fill",
- "stylers": [
- { "color": "#8eade4" }
- ]
- },{
- "featureType": "road",
- "elementType": "labels",
- "stylers": [
- { "visibility": "off" }
- ]
- },{
- "featureType": "road",
- "elementType": "geometry",
- "stylers": [
- { "visibility": "off" },
- { "color": "#b38683" }
- ]
- },{
- "featureType": "landscape.natural.terrain",
- "stylers": [
- { "visibility": "off" }
- ]
- },{
- "featureType": "landscape.man_made",
- "stylers": [
- { "visibility": "off" }
- ]
- },{
- "featureType": "administrative.locality",
- "elementType": "labels",
- "stylers": [
- { "visibility": "simplified" },
- { "color": "#4e2728" }
- ]
- },{
- "featureType": "administrative.province",
- "elementType": "labels",
- "stylers": [
- { "color": "#a5392c" },
- { "visibility": "simplified" }
- ]
- },{
- "featureType": "landscape.natural",
- "elementType": "geometry",
- "stylers": [
- { "color": "#ffffff" }
- ]
- }
- ];
- gmap.setOptions({
- styles: styles
- });
- } );
- (function() {
- GeoMashup.addAction( 'colorIcon', function( properties, icon, color_name ) {
- // For single category icons use the Geo Mashup color icon names,
- // but the 24x24 ones in the custom image directory
- icon.image = properties.custom_url_path + '/images/mm_58_' + color_name + '.png';
- icon.iconSize = [ 58, 58 ];
- icon.iconAnchor = [ 29, 59 ];
- icon.iconInfoWindowAnchor = [ 29, 1 ];
- } );
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement