Added error handler
Supporting srs other than EPSG:4326