From 5ffb6950cc3a688552290f9616c142e285b465b6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 8 Aug 2007 16:57:09 +0000 Subject: [PATCH] Use David Earl's arrow icon to show the position of a search result. --- app/views/site/index.rhtml | 2 +- public/images/arrow.png | Bin 0 -> 3971 bytes public/javascripts/map.js | 8 ++++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 public/images/arrow.png diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 5488ba40d..32f95947a 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -100,7 +100,7 @@ if (marker) removeMarkerFromMap(marker); - marker = addMarkerToMap(centre); + marker = addMarkerToMap(centre, getArrowIcon()); } function updateLocation() { diff --git a/public/images/arrow.png b/public/images/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..aa9b58fc261e2b8fd530f78f8772160ba76c4e6b GIT binary patch literal 3971 zcmV-}4}9>6P)P000&U1^@s6HNQ8u00009a7bBm000XU z000XU0RWnu7ytkYIcY;fP*7-ZbZ>KLZ*U+9)Gc>Uwq5=^`M4BQav zC@~mCR4i{s){CyJy!Z0*`{S%{?X&l}`|Q2XS{DG4r!SY621@~u$`kN|Je=tfkx_K) z0Du7=V1OwAOjbs^U$A=!5XsBUg`OdD0$&6H@OoIh0&vsNGk{J9|DU8;>3o6cm;e!* zvpE?o5f_L!B}hR1Px(02E1V7jRgKA~q2*i60W=BI4x$ z;7AEyaokrd;A9KLmvTu<&*5_u5(RV}mM-1Y+L}T4YB~8euXQVS(9J=A3hxi`{{&gM(L7aFFpTiSHgo&n% z%S#Zoo5$t~xM@5(m-nBV_z%PWq{X=wiPHEHP-BdM)O9LAe(eV+3K1aD`^8=Vqi??W zFd%+;;VP4hbN}x*{b#|Y;w6Kd@Hx&UD1^=u@-r9r#Lp6-0Rcz?Dv$@tKpp4+LtqB1 zfGuzYZonJ(gAfo2Rs$AD1gU@zvOpf#1PVbh*a`N4YETCnK{IFt$3Z7J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#jssEGIn%w|kXfBuKM*8cRdX#?@`S;Y7UsQ=|V z5fB?7fWT>!30Tsy0Bb%_W?~WKXW#%9>CB*{3CwV8;vx(jN^-zF#Kgd7WyJ6Y6y7W> zOb`ojm&PFVzuv#+0$BhMKwwMQ_<#i?AEIz%=7+FB7NTebrk;PB4-~Pj-(SJN3@reW ztMC7iyv7LP|NhPJ|Kn#tkT5_1fi3y_`#0ef!^+I?>%i$))(J~{89_nC^amJX|G^a- zBM19Gpv(UNlko4qd|a=A)x}3(uK&TJq4WTx6(E2ZK@EvNKk(-PCSWoD;q_~|HxWpFWd5=6^89Dx d;`|E`U;rbnwubwX`T_s|002ovPDHLkV1oNbjj#X! literal 0 HcmV?d00001 diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 781ea5551..a48e71077 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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); -- 2.39.5