body: { fillStyle: "white", lineWidth: 0, pattern: "/images/brown-paper.jpg", menu: { "Edit GSS": Cartagen.show_gss_editor, "Download Image": Cartagen.redirect_to_image, "Download Data": Interface.download_bbox } }, node: { fillStyle: "#ddd", strokeStyle: "#090", lineWidth: 0, radius: 1 }, way: { strokeStyle: "#ccc", lineWidth: 3, menu: { "Toggle Transparency": function() { if (this._transparency_active) { this.opacity = 1 this._transparency_active = false } else { this.opacity = 0.2 this._transparency_active = true } } } }, island: { strokeStyle: "#24a", lineWidth: 4, pattern: "/images/brown-paper.jpg" }, relation: { fillStyle: "#57d", strokeStyle: "#24a", lineWidth: 4, pattern: "/images/pattern-water.gif" }, administrative: { lineWidth: 50, strokeStyle: "#D45023", fillStyle: "rgba(0,0,0,0)", }, leisure: { fillStyle: "#2a2", lineWidth: 3, strokeStyle: "#181" }, area: { lineWidth: 8, strokeStyle: "#4C6ACB", fillStyle: "rgba(0,0,0,0)", opacity: 0.4, fontColor: "#444", }, park: { fillStyle: "#2a2", lineWidth: 3, strokeStyle: "#181", fontSize: 12, text: function() { return this.tags.get('name') }, fontRotation: 'fixed', opacity: 1 }, waterway: { fillStyle: "#57d", strokeStyle: "#24a", lineWidth: 4, pattern: "/images/pattern-water.gif" }, water: { strokeStyle: "#24a", lineWidth: 4, pattern: "/images/pattern-water.gif" }, highway: { strokeStyle: "white", lineWidth: 6, outlineWidth: 3, outlineColor: "white", fontColor: "#333", fontBackground: "white", fontScale: "fixed", text: function() { return this.tags.get('name') } }, primary: { strokeStyle: "#d44", lineWidth: function() { if (this.tags.get('width')) return parseInt(this.tags.get('width'))*0.8 else return 10 } }, secondary: { strokeStyle: "#d44", lineWidth: function() { if (this.tags.get('width')) return parseInt(this.tags.get('width'))*0.8 else return 7 } }, footway: { strokeStyle: "#842", lineWidth: function() { if (this.tags.get('width')) return parseInt(this.tags.get('width'))*0.8 else return 3 } }, pedestrian: { strokeStyle: "#842", fontBackground: "rgba(1,1,1,0)", fontColor: "#444", lineWidth: function() { if (this.tags.get('width')) return parseInt(this.tags.get('width'))*0.8 else return 3 } }, parkchange: { glow: "yellow" }, building: { opacity: 1, lineWidth: 0.001, fillStyle: "#444", text: function() { return this.tags.get('name') }, hover: { fillStyle: '#222' }, mouseDown: { lineWidth: 18, strokeStyle: "red" }, menu: { "Search on Google": function() { if (this.tags.get('name')) { window.open("http://google.com/search?q=" + this.tags.get('name'), "_blank") } else { alert('Sorry! The name of this building is unknown.') } }, "Search on Wikipedia": function() { if (this.tags.get('name')) { window.open("http://en.wikipedia.org/wiki/Special:Search?go=Go&search=" + this.tags.get('name'), "_blank") } else { alert('Sorry! The name of this building is unknown.') } } } }, landuse: { fillStyle: "#ddd" }, rail: { lineWidth: 4, strokeStyle: "purple" }, debug: { way: { menu: { "Inspect": function() {$l(this)} } } }