var map = new OpenLayers.Map("milwaukee-WI-bmo-harris-bank");map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap", ['//a.tile.openstreetmap.org/${z}/${x}/${y}.png','//b.tile.openstreetmap.org/${z}/${x}/${y}.png','//c.tile.openstreetmap.org/${z}/${x}/${y}.png'], null)); var zoom=9;var lonLat = new OpenLayers.LonLat( -87.917, 43.0362 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('2745 N Dr Martin Luther King Dr, Milwaukee, WI 53212', '17fe29b7', 'fd723c03');$geo('2701 W National Ave, Milwaukee, WI 53215', 'ff68ecdc', 'fd723c03');$geo('7635 W Bluemound Rd, Milwaukee, WI 53213', 'c3aaa93a', 'fd723c03');$geo('2701 S Kinnickinnic Ave, Milwaukee, WI 53207', '8f89e6b1', 'fd723c03');$geo('111 E Kilbourn Ave, Milwaukee, WI 53202', '0017c8fd', 'fd723c03');$geo('3131 S 13th St, Milwaukee, WI 53215', 'cad3fbfe', 'fd723c03');$geo('2120 W Wisconsin Ave, Milwaukee, WI 53233', 'b2b926fa', 'fd723c03');$geo('414 W National Ave, Milwaukee, WI 53204', '343d19e0', 'fd723c03');$geo('5300 S Howell Ave, Milwaukee, WI 53207', 'd9a3b7bb', 'fd723c03');$geo('8300 W Silver Spring Dr, Milwaukee, WI 53218', 'ae92872c', 'fd723c03');$geo('422 E Mason St, Milwaukee, WI 53202', 'e6b33382', 'fd723c03');$geo('7600 W Layton Ave, Milwaukee, WI 53220', '2bdfc35a', 'fd723c03');$geo('3536 W Fond du Lac Ave, Milwaukee, WI 53216', '0ecaaab6', 'fd723c03');$geo('6645 W Oklahoma Ave, Milwaukee, WI 53219', '031bea0b', 'fd723c03');$geo('9001 N 76th St, Milwaukee, WI 53223', '40b07024', 'fd723c03');$geo('770 N Water St, Milwaukee, WI 53202', 'ece3fad1', 'fd723c03');$geo('2266 S 13th St, Milwaukee, WI 53215', 'adbc7502', 'fd723c03');function $setCenter($lon, $lat){map.setCenter(new OpenLayers.LonLat($lon,$lat).transform(new OpenLayers.Projection('EPSG:4326'), map.getProjectionObject() ), 18);}function $geo($location, $hash, $hash2){var $geocode = 'https://nominatim.openstreetmap.org/search?q='+$location+'&format=json'; $.getJSON($geocode, function(data) {var lonLat = new OpenLayers.LonLat( data[0]['lon'] , data[0]['lat'] ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());var markers = new OpenLayers.Layer.Markers( "Markers" );map.addLayer(markers);markers.addMarker(new OpenLayers.Marker(lonLat));map.setCenter (lonLat, 12);document.getElementById($hash).innerHTML += ' | View Map';});}