var map = new OpenLayers.Map("las-vegas-NV-check-city");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( -115.123, 36.175 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('7910 S Rainbow Blvd, Las Vegas, NV 89139', '15741e3b', '9cc65ca1');$geo('631 N Nellis Blvd, Las Vegas, NV 89110', '5b48f718', '9cc65ca1');$geo('6510 N Buffalo Dr, Las Vegas, NV 89131', 'b68a27da', '9cc65ca1');$geo('4035 S Durango Dr, Las Vegas, NV 89147', 'dde3d6e5', '9cc65ca1');$geo('5861 W Craig Rd, Las Vegas, NV 89130', '7ebe1fcb', '9cc65ca1');$geo('5355 S Fort Apache Rd, Las Vegas, NV 89148', '0e0dd658', '9cc65ca1');$geo('6020 W Flamingo Rd, Las Vegas, NV 89103', '7e0effb0', '9cc65ca1');$geo('8505 S Eastern Ave, Las Vegas, NV 89123', '0e56053b', '9cc65ca1');$geo('1990 N RAINBOW BLVD, Las Vegas, NV 89108', '617eaeba', '9cc65ca1');$geo('4455 E Tropicana Ave, Las Vegas, NV 89121', '06e1ce2b', '9cc65ca1');$geo('3210 S Nellis Blvd, Las Vegas, NV 89121', '0a4bffe9', '9cc65ca1');$geo('8520 W Warm Springs Rd, Las Vegas, NV 89113', '70624250', '9cc65ca1');$geo('4348 E Craig Rd, Las Vegas, NV 89115', 'f625b20b', '9cc65ca1');$geo('6820 W Charleston Blvd, Las Vegas, NV 89117', '3b539493', '9cc65ca1');$geo('7350 W Cheyenne Ave, Las Vegas, NV 89129', '2a1f027f', '9cc65ca1');$geo('8030 Blue Diamond Rd, Las Vegas, NV 89178', '3e8e9963', '9cc65ca1');$geo('4080 S Paradise Rd, Las Vegas, NV 89169', '931deef3', '9cc65ca1');$geo('3350 Novat St, Las Vegas, NV 89129', '608d587f', '9cc65ca1');$geo('6510 Boulder Hwy, Las Vegas, NV 89122', '145ee785', '9cc65ca1');$geo('9425 W Tropicana Av, Las Vegas, NV 89147', '886065d4', '9cc65ca1');$geo('1280 E Silverado Ranch Blvd, Las Vegas, NV 89183', 'b8550a23', '9cc65ca1');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';});}