Skip to content

Commit

Permalink
New esri-dynamic-layer-single-layer, updated specs to match
Browse files Browse the repository at this point in the history
Fixes #849
  • Loading branch information
ewlarson committed Aug 9, 2019
1 parent 5cb919b commit 5f6df1e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 42 deletions.
4 changes: 1 addition & 3 deletions spec/features/esri_viewer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
scenario 'displays dynamic layer (all layers)' do
pending 'external service disabled cors access'
visit solr_document_path '90f14ff4-1359-4beb-b931-5cb41d20ab90'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
scenario 'displays dynamic layer (single layer)' do
pending 'external service disabled cors access'
visit solr_document_path '4669301e-b4b2-4c8b-bf40-01b968a2865b'
visit solr_document_path '96695a9199574b1fa7d0d0b650e68c77_8'
expect(page).to have_css '.leaflet-control-zoom', visible: true
expect(page).to have_css 'img.leaflet-image-layer', visible: true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/features/search_results_map_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
visit root_path
click_link 'Minnesota, United States'
results = page.all(:css, 'article.document')
expect(results.count).to equal(3)
expect(results.count).to equal(4)
end
scenario 'view is scoped to Minnesota' do
visit root_path
Expand Down
60 changes: 22 additions & 38 deletions spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,24 @@
{
"dc_identifier_s": "4669301e-b4b2-4c8b-bf40-01b968a2865b",
"dc_title_s": "Abandoned Quarries: Indiana",
"dc_description_s": "QUARRIES_ABANDONED_IN was derived from a comma-delimited text file named \"QUALOC.TXT\" contained on the following CD-ROM publication: Hasenmueller, W.A., and Ault, C.H., 2001, Abandoned Industrial Minerals Quarries in Indiana, 2nd Edition, Digital Version, Computer Database 2, Indiana Geological Survey. The field named \"QUANUM\" can be used to link this data to the following tables available in the publication cited above: bibliography (QUAREF.TXT), history of operation (QUAHIS.TXT), and stratigraphy (QUASTR.TXT). It contains all abandoned quarry locations within QUALOC.TXT that have locational information that is adequate to determine UTM coordinate values.",
"dc_rights_s": "Public",
"dc_format_s": "Shapefile",
"dc_language_sm": "English",
"dc_type_sm": [
"Dataset",
"Service"
],
"dc_publisher_sm": [
"Indiana Geological Survey"
],
"dc_creator_sm": [
"Indiana Geological Survey"
],
"dc_subject_sm": [
"Geoscientific Information",
"Geology"
],
"dct_provenance_s": "Purdue",
"dct_references_s": "{\"http://schema.org/url\":\"http://maps.indiana.edu/previewMaps/Geology/Industrial_Minerals_Quarries_Abandoned.html\",\"http://schema.org/downloadUrl\":\"http://maps.indiana.edu/download/Geology/Industrial_Minerals_Quarries_Abandoned.zip\",\"http://schema.org/image\":\"http://maps.indiana.edu/images/Geology/Industrial_Minerals_Quarries_Abandoned.png\",\"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer\":\"https://maps.indiana.edu/arcgis/rest/services/Geology/Industrial_Minerals_Quarries_Abandoned/MapServer/0\",\"http://www.opengis.net/cat/csw/csdgm\":\"http://maps.indiana.edu/metadata/Geology/Industrial_Minerals_Quarries_Abandoned.xml\"}",
"dct_isPartOf_sm": [
"IndianaMAP"
],
"dct_issued_s": "2003-05-30",
"dct_temporal_sm": [
"2003"
],
"dct_spatial_sm": [
"Indiana, United States"
],
"layer_slug_s": "4669301e-b4b2-4c8b-bf40-01b968a2865b",
"layer_geom_type_s": "Point",
"layer_modified_dt": "2018-08-02T17:05:54Z",
"solr_geom": "ENVELOPE(-87.9324, -86.2569, 39.8521, 37.8626)",
"solr_year_i": 2003,
"geoblacklight_version": "1.0"
"dc_identifier_s": "96695a9199574b1fa7d0d0b650e68c77_8",
"dc_title_s": "Bicycle Count Stations: Hennepin County, Minnesota",
"dc_description_s": "Each year, Hennepin County collects 48 hour bicycle counts for sites across either the northern (cycle B) or southern half (cycle A) of the county using MetroCount RoadPod tube counters. Additional locations, such as CIP counts may be added to a cycle. 48 hour counts are converted to AADB using data from six permanent bicycle counters across the county. For more detailed information related to methodology, and the latest report, visit https:\/\/www.hennepin.us\/residents\/transportation\/biking. Link to Attribute Table Information: http:\/\/gis.hennepin.us\/OpenData\/Metadata\/BicycleCountStations.pdf Data updated: annually This data (i) is furnished AS IS with no representation as to completeness or accuracy; (ii) is furnished with no warranty of any kind; and (iii) is not suitable for legal, engineering or surveying purposes. Hennepin County shall not be liable for any damage, injury or loss resulting from this data. General questions about this data set, including errors, omissions, corrections and\/or updates should be directed to the Hennepin County GIS Office at 612-596-9484.",
"dc_rights_s": "Public",
"dc_format_s": "Shapefile",
"dc_language_sm": "English",
"dc_type_s": "Dataset",
"dc_publisher_sm": ["Hennepin County, Minnesota"],
"dc_creator_sm": ["Hennepin County"],
"dc_subject_sm": ["Transportation","Planning and Cadastral"],
"dct_provenance_s": "Minnesota",
"dct_references_s": "{\"http://schema.org/url\":\"https://gis-hennepin.opendata.arcgis.com/datasets/96695a9199574b1fa7d0d0b650e68c77_8\",\"http://schema.org/downloadUrl\":\"https://gis-hennepin.opendata.arcgis.com/datasets/96695a9199574b1fa7d0d0b650e68c77_8.zip\",\"urn:x-esri:serviceType:ArcGIS#DynamicMapLayer\":\"https://gis.hennepin.us/arcgis/rest/services/HennepinData/TRANSPORTATION/MapServer/8\"}",
"dct_isPartOf_sm": ["Counties Geospatial Data"],
"dct_issued_s": "2018-03-20",
"dct_temporal_sm": ["2018"],
"dct_spatial_sm": ["Hennepin County, Minnesota, United States","Minnesota, United States"],
"layer_slug_s": "96695a9199574b1fa7d0d0b650e68c77_8",
"layer_geom_type_s": "Vector",
"layer_modified_dt": "2019-8-9T20:5:23Z",
"solr_geom": "ENVELOPE(-93.7514, -93.2028, 45.2303, 44.7913)",
"solr_year_i": 2018,
"geoblacklight_version": "1.0"
}

0 comments on commit 5f6df1e

Please sign in to comment.