var map = new OpenLayers.Map("houston-TX-loanstar-title-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('329 S. Wayside Dr., Houston, TX 77011', 'ce335a37', '02ae2634');$geo('1051 Uvalde Rd, Houston, TX 77015', '40c57ac7', '02ae2634');$geo('7544 Bellfort St, Houston, TX 77061', 'd5b88468', '02ae2634');$geo('5203 Telephone Rd, Houston, TX 77087', 'd6bf6b0b', '02ae2634');$geo('12303 Bissonnet Street, Houston, TX 77099', '75be140a', '02ae2634');$geo('14290 Bellaire Blvd., Houston, TX 77083', '729b5111', '02ae2634');$geo('12903 Westheimer Rd, Houston, TX 77077', '4091f292', '02ae2634');$geo('7760 W. Bellfort St., Houston, TX 77071', 'faafc64c', '02ae2634');$geo('9277 Richmond Ave, Houston, TX 77063', 'fcd795fe', '02ae2634');$geo('1431 Gessner Rd, Houston, TX 77080', 'b66cdd90', '02ae2634');$geo('7921 Longpoint Rd., Houston, TX 77055', '24b5a0ff', '02ae2634');$geo('12202 Veterans Memorial Dr., Houston, TX 77067', '847a8a36', '02ae2634');$geo('5320 Antoine Dr., Houston, TX 77091', '2da84cfd', '02ae2634');$geo('14415 Wallisville Rd, Houston, TX 77049', '5cb3f71a', '02ae2634');$geo('3703 Reveille St, Houston, TX 77087', '27f383ff', '02ae2634');$geo('2306 FM 1960 West, Houston, TX 77068', '42f358a5', '02ae2634');$geo('2225 N. Shepherd Dr., Houston, TX 77008', '4c66010d', '02ae2634');$geo('1332 Crosstimbers St., Houston, TX 77022', '0e231ddc', '02ae2634');$geo('4001 S. Sam Houston Pkwy E, Houston, TX 77047', '3b07115c', '02ae2634');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';});}