var map = new OpenLayers.Map("houston-TX-texas-car-title-payday-loans");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( -95.2221, 29.7204 ).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject());map.setCenter (lonLat, zoom);$geo('6001 Hillcroft St, Houston, TX 77081', '381261e9', 'a28ade51');$geo('4400 San Jacinto St, Houston, TX 77004', '88b8a296', 'a28ade51');$geo('6405 Richmond Ave, Houston, TX 77057', '79df3e36', 'a28ade51');$geo('8555 Beechnut St, Houston, TX 77036', '2f7782db', 'a28ade51');$geo('3890 S Gessner Rd, Houston, TX 77063', '66f534ad', 'a28ade51');$geo('3105 S Shepherd Dr, Houston, TX 77098', '8c2bedd0', 'a28ade51');$geo('8534 Gulf Fwy, Houston, TX 77017', 'edd2938f', 'a28ade51');$geo('2902 Fulton St, Houston, TX 77009', '4e87db9a', 'a28ade51');$geo('8880 Bellaire Blvd, Houston, TX 77036', '50b260f4', 'a28ade51');$geo('2206 Fry Rd, Houston, TX 77084', '3f7b26e5', 'a28ade51');$geo('5800 Bellaire Blvd, Houston, TX 77081', '235c7858', 'a28ade51');$geo('1360 Nasa Pkwy, Houston, TX 77058', '956715ce', 'a28ade51');$geo('9400 Highway 6 S, Houston, TX 77083', '13996107', 'a28ade51');$geo('4401 Telephone Rd, Houston, TX 77087', '8fff8264', 'a28ade51');$geo('3235 Cypress Creek Pkwy, Houston, TX 77068', '71ae6ea8', 'a28ade51');$geo('3422 Cypress Creek Pkwy, Houston, TX 77068', '3a51fc0f', 'a28ade51');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';});}