aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/i/pin.svg19
-rw-r--r--www/i/pin_shadow.svg24
-rw-r--r--www/js/map-OpenLayers.js12
-rw-r--r--www/js/views/around.js6
4 files changed, 59 insertions, 2 deletions
diff --git a/www/i/pin.svg b/www/i/pin.svg
new file mode 100644
index 0000000..ae97408
--- /dev/null
+++ b/www/i/pin.svg
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="70px"
+ height="110px" viewBox="0 0 70 110" style="enable-background:new 0 0 70 110;" xml:space="preserve">
+<g id="Layer_1">
+ <g>
+ <path style="fill:#333333;" d="M35,4.319c-17.434,0-31.562,14.129-31.562,31.562C3.438,67.444,35,105.319,35,105.319
+ s31.562-37.875,31.562-69.438C66.562,18.448,52.434,4.319,35,4.319z M35.002,61.745c-4.352,0-8.438-1.133-11.987-3.111
+ l4.737-4.838l6.316-6.453c0.053-0.051,0.088-0.115,0.137-0.166c0.9,0.225,1.822,0.373,2.789,0.373
+ c6.479,0.021,11.738-5.174,11.757-11.596c0.009-1.025-0.166-2.002-0.415-2.959l-6.176,6.094l-6.828-1.465l-1.438-6.785
+ l6.188-6.096c-0.964-0.27-1.965-0.457-3.018-0.457c-6.471-0.016-11.739,5.166-11.758,11.596c-0.002,1.361,0.27,2.652,0.701,3.871
+ l-6.934,7.076l-4.273,4.361c-2.717-3.916-4.316-8.652-4.316-13.758c0-13.41,10.998-24.316,24.518-24.316
+ c13.516,0,24.512,10.906,24.512,24.316C59.516,50.843,48.518,61.745,35.002,61.745z"/>
+ </g>
+</g>
+<g id="nyt_x5F_exporter_x5F_info" style="display:none;">
+</g>
+</svg>
diff --git a/www/i/pin_shadow.svg b/www/i/pin_shadow.svg
new file mode 100644
index 0000000..1e9b0eb
--- /dev/null
+++ b/www/i/pin_shadow.svg
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="185px"
+ height="110px" viewBox="0 0 185 110" style="enable-background:new 0 0 185 110;" xml:space="preserve">
+<g id="Layer_1">
+ <g>
+
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="79.6641" y1="159.1553" x2="142.6646" y2="120.1549" gradientTransform="matrix(0.9604 -0.2786 0.2786 0.9604 -26.9562 -25.734)">
+ <stop offset="0" style="stop-color:#000000;stop-opacity:0.2"/>
+ <stop offset="1" style="stop-color:#000000;stop-opacity:0"/>
+ </linearGradient>
+ <path style="opacity:0.7;fill:url(#SVGID_1_);" d="M143.532,51.094c-30.477-2.699-62.367,2.56-71.242,11.748
+ c-16.067,16.632,19.826,41.478,19.826,41.478s74.455-15.074,90.523-31.708C191.513,63.424,174.009,53.791,143.532,51.094z
+ M114.3,81.355c-7.605-0.673-14.174-1.903-19.371-3.495l10.744-1.815l14.328-2.422c0.117-0.02,0.211-0.049,0.324-0.067
+ c1.46,0.258,2.996,0.479,4.686,0.627c11.312,1.016,23.152-0.909,26.455-4.289c0.537-0.54,0.729-1.082,0.779-1.623l-13.898,2.255
+ l-11.189-1.83l0.941-3.797l13.918-2.255c-1.547-0.292-3.201-0.546-5.041-0.709c-11.305-1.01-23.152,0.906-26.455,4.291
+ c-0.699,0.718-0.879,1.44-0.747,2.148L94.052,71.03l-9.691,1.638c-2.756-2.484-3.139-5.229-0.539-7.919
+ c6.825-7.066,31.602-11.11,55.234-9.019c23.629,2.093,37.297,9.541,30.471,16.608C162.704,79.404,137.929,83.448,114.3,81.355z"/>
+ </g>
+</g>
+<g id="nyt_x5F_exporter_x5F_info" style="display:none;">
+</g>
+</svg>
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index 9a0bf67..cc14f99 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -89,6 +89,18 @@ function fixmystreet_onload() {
backgroundHeight: 40,
backgroundXOffset: -10,
backgroundYOffset: -35
+ },
+ 'location': {
+ externalGraphic: "i/pin.svg",
+ graphicWidth: 70,
+ graphicHeight: 110,
+ graphicXOffset: -35,
+ graphicYOffset: -110,
+ backgroundGraphic: "i/pin_shadow.svg",
+ backgroundWidth: 186,
+ backgroundHeight: 110,
+ backgroundXOffset: -93,
+ backgroundYOffset: -110
}
});
var pin_layer_options = {
diff --git a/www/js/views/around.js b/www/js/views/around.js
index 1690021..db33bda 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -156,8 +156,10 @@
$('#login-options').hide();
$('#mark-here').hide();
$('#postcodeForm').hide();
- fixmystreet.markers.setVisibility(false);
- fixmystreet.select_feature.deactivate();
+ var lonlat = this.getCrossHairPosition();
+ var markers = fms_markers_list( [ [ lonlat.lat, lonlat.lon, 'green', 'location', '', 'location' ] ], true );
+ fixmystreet.markers.removeAllFeatures();
+ fixmystreet.markers.addFeatures( markers );
},
onClickCancel: function(e) {