var map = new OpenLayers.Map("jacksonville-FL-cash-america-pawn");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( -81.7709, 30.3349 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('5104 Normandy Blvd, Jacksonville, FL 32205', 'f72ad239', '7980c710');$geo('910 Edgewood Ave N, Jacksonville, FL 32254', 'bb68c941', '7980c710');$geo('3636 N Main St, Jacksonville, FL 32206', '29bb7de3', '7980c710');$geo('8118 Lem Turner Rd, Jacksonville, FL 32208', '9451c2a2', '7980c710');$geo('5143 University Blvd W, Jacksonville, FL 32216', '09fb4385', '7980c710');$geo('4460 Blanding Blvd, Jacksonville, FL 32210-7321', '1264252b', '7980c710');$geo('5308 Beach Blvd, Jacksonville, FL 32207', '24c8f4ab', '7980c710');$geo('6999 Merrill Rd Suite 3, Jacksonville, FL 32277-2690', '552c890b', '7980c710');$geo('7640 Atlantic Blvd, Jacksonville, FL 32211-8716', 'd136350f', '7980c710');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';});}