Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. GeoMashup.addAction( 'loadedMap', function( properties, map ) {
  2. var gmap = map.getMap();
  3. var styles = [
  4. {
  5. "featureType": "water",
  6. "elementType": "geometry.fill",
  7. "stylers": [
  8. { "color": "#8eade4" }
  9. ]
  10. },{
  11. "featureType": "road",
  12. "elementType": "labels",
  13. "stylers": [
  14. { "visibility": "off" }
  15. ]
  16. },{
  17. "featureType": "road",
  18. "elementType": "geometry",
  19. "stylers": [
  20. { "visibility": "off" },
  21. { "color": "#b38683" }
  22. ]
  23. },{
  24. "featureType": "landscape.natural.terrain",
  25. "stylers": [
  26. { "visibility": "off" }
  27. ]
  28. },{
  29. "featureType": "landscape.man_made",
  30. "stylers": [
  31. { "visibility": "off" }
  32. ]
  33. },{
  34. "featureType": "administrative.locality",
  35. "elementType": "labels",
  36. "stylers": [
  37. { "visibility": "simplified" },
  38. { "color": "#4e2728" }
  39. ]
  40. },{
  41. "featureType": "administrative.province",
  42. "elementType": "labels",
  43. "stylers": [
  44. { "color": "#a5392c" },
  45. { "visibility": "simplified" }
  46. ]
  47. },{
  48. "featureType": "landscape.natural",
  49. "elementType": "geometry",
  50. "stylers": [
  51. { "color": "#ffffff" }
  52. ]
  53. }
  54. ];
  55.  
  56. gmap.setOptions({
  57. styles: styles
  58. });
  59. } );
  60.  
  61. (function() {
  62. GeoMashup.addAction( 'colorIcon', function( properties, icon, color_name ) {
  63. // For single category icons use the Geo Mashup color icon names,
  64. // but the 24x24 ones in the custom image directory
  65. icon.image = properties.custom_url_path + '/images/mm_58_' + color_name + '.png';
  66. icon.iconSize = [ 58, 58 ];
  67. icon.iconAnchor = [ 29, 59 ];
  68. icon.iconInfoWindowAnchor = [ 29, 1 ];
  69. } );
  70. }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement