var map = new OpenLayers.Map("las-vegas-NV-dollar-loan-center");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('6420 S Pecos Road, Las Vegas, NV 89120', 'a9d29631', '0fe29a3c');$geo('3051 N Rainbow Blvd, Las Vegas, NV 89108', '805f4885', '0fe29a3c');$geo('6122 W Sahara Ave, Las Vegas, NV 89146', 'b51827ef', '0fe29a3c');$geo('4310 E Tropicana Ave, Las Vegas, NV 89121', 'd4616c47', '0fe29a3c');$geo('8665 W Flamingo Road, Las Vegas, NV 89147', '572b7511', '0fe29a3c');$geo('5335 S Decatur Blvd, Las Vegas, NV 89118', 'b98b1aa0', '0fe29a3c');$geo('9101 W. Sahara Ave., Las Vegas, NV 89117', '0837b1e7', '0fe29a3c');$geo('3799 E Desert Inn Rd, Las Vegas, NV 89121', '19c81141', '0fe29a3c');$geo('3650 S Jones Blvd, Las Vegas, NV 89103', '074288b6', '0fe29a3c');$geo('6775 E Lake Mead Blvd, Las Vegas, NV 89156', 'd7ecd288', '0fe29a3c');$geo('6401 N Durango Drive, Las Vegas, NV 89149', 'a472a222', '0fe29a3c');$geo('2288 S Nellis Blvd, Las Vegas, NV 89104', '184a316f', '0fe29a3c');$geo('282 S Decatur Blvd, Las Vegas, NV 89107', '42c18d61', '0fe29a3c');$geo('1386 E Flamingo Road, Las Vegas, NV 89119', 'd6c5027d', '0fe29a3c');$geo('5875 S Rainbow Blvd, Las Vegas, NV 89118', '5ac0ff71', '0fe29a3c');$geo('7875 S Rainbow Blvd, Las Vegas, NV 89139', '08274bcf', '0fe29a3c');$geo('7390 S Las Vegas Blvd, Las Vegas, NV 89123', '7efc2e57', '0fe29a3c');$geo('2877 E Charleston Blvd, Las Vegas, NV 89104', '049f276f', '0fe29a3c');$geo('4240 W Flamingo Road, Las Vegas, NV 89103', 'b3cbbfe5', '0fe29a3c');$geo('625 N Lamb Blvd, Las Vegas, NV 89110', 'aeb570cc', '0fe29a3c');$geo('651 N Rainbow Blvd, Las Vegas, NV 89107', 'a3c738e7', '0fe29a3c');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';});}