body: { fillStyle: "rgba(0,0,0,0)", lineWidth: 0, pattern: "/images/brown-paper.jpg" }, node: { fillStyle: "#ddd", strokeStyle: "#090", lineWidth: 0, radius: 1 }, way: { strokeStyle: "#ccc", lineWidth: 3, }, 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() { if (this.tags.get('name:'+Cartagen.get_url_param('language'))) return this.tags.get('name:'+Cartagen.get_url_param('language')) else 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" }, coastline: { fillStyle: "#57d", strokeStyle: "#24a", opacity:0.8, lineWidth: 4, pattern: "/images/pattern-water.gif" }, highway: { strokeStyle: "white", lineWidth: 6, outlineWidth: 3, outlineColor: "white", fontColor: "#333", fontBackground: "white", fontScale: "fixed", text: function() { if (this.tags.get('name:'+Cartagen.get_url_param('language'))) return this.tags.get('name:'+Cartagen.get_url_param('language')) else 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() { if (this.tags.get('name:'+Cartagen.get_url_param('language'))) return this.tags.get('name:'+Cartagen.get_url_param('language')) else return this.tags.get('name') }, hover: { fillStyle: '#222', action: function() { console.log('hover') } }, mouseDown: { lineWidth: 18, strokeStyle: "red", action: function() { console.log('mousedown') } } }, landuse: { fillStyle: "#ddd" }, rail: { lineWidth: 4, strokeStyle: "purple" }