Use David Earl's arrow icon to show the position of a search result.

This commit is contained in:
Tom Hughes 2007-08-08 16:57:09 +00:00
parent 6706ca3c50
commit 5ffb6950cc
3 changed files with 9 additions and 1 deletions

View file

@ -51,6 +51,14 @@ function getTileURL(bounds) {
}
}
function getArrowIcon() {
var size = new OpenLayers.Size(25, 22);
var offset = new OpenLayers.Pixel(-30, -27);
var icon = new OpenLayers.Icon("/images/arrow.png", size, offset);
return icon;
}
function addMarkerToMap(position, icon, description) {
var marker = new OpenLayers.Marker(position, icon);