aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/route_section.js.coffee6
-rw-r--r--app/maps/design/route_section_style_map.rb8
2 files changed, 9 insertions, 5 deletions
diff --git a/app/assets/javascripts/route_section.js.coffee b/app/assets/javascripts/route_section.js.coffee
index e4a1021c3..5c721cdfb 100644
--- a/app/assets/javascripts/route_section.js.coffee
+++ b/app/assets/javascripts/route_section.js.coffee
@@ -67,12 +67,16 @@ jQuery ->
wtk_format = new OpenLayers.Format.WKT()
user_geometry.events.on({
+ featureclick: (event) ->
+ $('circle[stroke-opacity="0.3"]').attr('stroke-opacity', '0.6').attr('fill-opacity', '0.6')
afterfeaturemodified: (event) ->
- wgs84_geometry = event.feature.geometry.transform(proj900913, projWGS84)
+ efg = event.feature.geometry
+ wgs84_geometry = efg.transform(proj900913, projWGS84)
wgs84_feature = new OpenLayers.Feature.Vector(wgs84_geometry)
ewtk = "SRID=4326;#{wtk_format.write(wgs84_feature)}"
$('#route_section_editable_geometry').val(ewtk)
+ efg.transform(projWGS84, proj900913)
return
})
diff --git a/app/maps/design/route_section_style_map.rb b/app/maps/design/route_section_style_map.rb
index 01fbafe0f..dbd292412 100644
--- a/app/maps/design/route_section_style_map.rb
+++ b/app/maps/design/route_section_style_map.rb
@@ -36,7 +36,7 @@ class Design::RouteSectionStyleMap < Design::GenericStyleMap
:labelYOffset => -15,
:strokeColor => "green",
:strokeOpacity => 1,
- :strokeWidth => 5,
+ :strokeWidth => 4,
:strokeLineCap => "round",
:strokeLineJoin => "round",
:strokeDashstyle => "solid",
@@ -49,10 +49,10 @@ class Design::RouteSectionStyleMap < Design::GenericStyleMap
:graphicXOffset => -6,
:graphicYOffset => -6,
:display => true,
- fillOpacity: 0.5,
- fillColor: "lightblue",
+ fillOpacity: 0.8,
+ fillColor: "#ffffff",
graphicName: "circle",
- pointRadius: 6,
+ pointRadius: 7,
pointerEvents: "visiblePainted",
rotation: 90
}