From 190d8f4aed3a04072cce7d287f22d67d629b1380 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Tue, 21 Feb 2012 16:38:59 +0530 Subject: [PATCH] Add a name to the Vector layer. --- chaloBEST/static/js/editstops.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index bfe098c..1ca1bf9 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -150,7 +150,7 @@ var API_BASE = "/1.0/", geojson_format = new OpenLayers.Format.GeoJSON(); //yes, jsonLayer is global. Yes, I know it's wrong. - jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'}); + jsonLayer = layers[1] = new OpenLayers.Layer.Vector("Bus Stops", {'geometryType': 'Point'}); // map.addLayer(vector_layer); map.addLayers(layers); map.setCenter(center, 12);