Set title-test of markers
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/f0bac87b Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/f0bac87b Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/f0bac87b Branch: refs/heads/0.6.0 Commit: f0bac87ba28776704bdd157c08cc635e2c3fcba0 Parents: f6ae752 Author: Martin Harris <[email protected]> Authored: Fri Nov 15 11:38:29 2013 +0000 Committer: Martin Harris <[email protected]> Committed: Fri Nov 15 11:38:29 2013 +0000 ---------------------------------------------------------------------- usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/f0bac87b/usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js ---------------------------------------------------------------------- diff --git a/usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js b/usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js index 1a8a504..2ce8aee 100644 --- a/usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js +++ b/usage/jsgui/src/main/webapp/assets/js/view/googlemaps.js @@ -31,6 +31,7 @@ define( lm.circle.setRadius(local.radius(local.computeLocationArea(it.leafEntityCount))); lm.circle.setCenter(latlng); lm.marker.setPosition(latlng); + lm.marker.setTitle(it.name); // lm.infoWindow.setPairs(l); newLocs[id] = lm; @@ -40,7 +41,8 @@ define( var marker = new google.maps.Marker({ map: map, - position: new google.maps.LatLng(it.latitude, it.longitude) + position: new google.maps.LatLng(it.latitude, it.longitude), + title: it.name }); // TODO from old grails app
