this._object = object;
this._objectLayer = L.featureGroup().addTo(this);
-
+
L.circleMarker(object.latLng, haloStyle).addTo(this._objectLayer);
-
+
L.marker(object.latLng, {
icon: object.icon,
opacity: 1,
interactive: true
}).addTo(this._objectLayer);
-
+
if (callback) callback(this._objectLayer.getBounds());
} else { // element or changeset handled by L.OSM.DataLayer
var map = this;
--- /dev/null
+require "application_system_test_case"
+
+class IndexTest < ApplicationSystemTestCase
+ test "node included in edit link" do
+ node = create(:node)
+ visit node_path(node)
+ assert_selector "#editanchor[href*='?node=#{node.id}#']"
+
+ find("#sidebar .btn-close").click
+ assert_no_selector "#editanchor[href*='?node=#{node.id}#']"
+ end
+
+ test "note included in edit link" do
+ note = create(:note_with_comments)
+ visit browse_note_path(note)
+ assert_selector "#editanchor[href*='?note=#{note.id}#']"
+
+ find("#sidebar .btn-close").click
+ assert_no_selector "#editanchor[href*='?note=#{note.id}#']"
+ end
+end