var map = new OpenLayers.Map("largo-FL-liberty-tax-service");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( -82.7997, 27.9209 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('1610 Missouri Ave N, Largo, FL 33770-1826', 'c48c059b', '40c91fd0');$geo('3665 E Bay Dr Ste 188, Largo, FL 33771-1965', '416975e1', '40c91fd0');$geo('13002 Seminole Blvd, Largo, FL 33778-2125', '24ee1265', '40c91fd0');$geo('1941 W Bay Dr, Largo, FL 33770-3034', '917f1a09', '40c91fd0');$geo('1300 E Bay Dr, Largo, FL 33771-1004', '260ab7da', '40c91fd0');$geo('11992 Indian Rocks Rd, Largo, FL 33774-3213', 'e953aba9', '40c91fd0');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';});}