-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from sul-dlss/wms-layer
adds WMS layer preview for public layers
- Loading branch information
Showing
9 changed files
with
169 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,7 +265,7 @@ def hybrid_object_purl | |
</publicObject> | ||
XML | ||
end | ||
def geo_purl | ||
def geo_purl_public | ||
<<-XML | ||
<publicObject> | ||
<identityMetadata> | ||
|
@@ -303,4 +303,55 @@ def geo_purl | |
</publicObject> | ||
XML | ||
end | ||
def geo_purl_restricted | ||
<<-XML | ||
<publicObject id="druid:fp756wn9369" published="2015-02-04T20:03:27-08:00"> | ||
<identityMetadata> | ||
<sourceId source="branner">rr_1100kgrdu.shp</sourceId> | ||
<objectId>druid:fp756wn9369</objectId> | ||
</identityMetadata> | ||
<contentMetadata objectId="fp756wn9369" type="geo"> | ||
<resource id="fp756wn9369_1" sequence="1" type="object"> | ||
<label>Data</label> | ||
<file id="data.zip" mimetype="application/zip" size="127368" role="master"> | ||
<geoData> | ||
<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://purl.stanford.edu/fp756wn9369"> | ||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/x-esri-shapefile; format=Shapefile</dc:format> | ||
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/">Dataset#Polygon</dc:type> | ||
<gml:boundedBy xmlns:gml="http://www.opengis.net/gml/3.2/"> | ||
<gml:Envelope gml:srsName="EPSG:4326"> | ||
<gml:lowerCorner>-123.387626 38.298673</gml:lowerCorner> | ||
<gml:upperCorner>-122.528843 39.399103</gml:upperCorner> | ||
</gml:Envelope> | ||
</gml:boundedBy> | ||
</rdf:Description> | ||
</geoData> | ||
</file> | ||
</resource> | ||
</contentMetadata> | ||
<rightsMetadata> | ||
<access type="discover"> | ||
<machine> | ||
<world/> | ||
</machine> | ||
</access> | ||
<access type="read"> | ||
<machine> | ||
<group>Stanford</group> | ||
</machine> | ||
</access> | ||
<use> | ||
<human type="useAndReproduction"> | ||
These data are licensed by Stanford Libraries and are available to Stanford University affiliates only. Affiliates are limited to current faculty, staff and students. These data may not be reproduced or used for any purpose without permission. For more information please contact [email protected]. | ||
</human> | ||
<human type="creativeCommons"/> | ||
<machine type="creativeCommons"/> | ||
</use> | ||
<copyright> | ||
<human>Copyright ownership resides with the originator.</human> | ||
</copyright> | ||
</rightsMetadata> | ||
</publicObject> | ||
XML | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//= require jquery | ||
//= require modules/geo_viewer | ||
|
||
'use strict'; | ||
|
||
describe('geo_viewer.js', function() { | ||
describe('loads and makes available modules', function() { | ||
it('GeoViewer is defined', function() { | ||
expect(GeoViewer).toBeDefined(); | ||
}); | ||
}); | ||
describe('#init', function() { | ||
fixture.set('<div id="sul-embed-geo-map" data-bounding-box=\'[["38.298673' + | ||
'", "-123.387626"], ["39.399103", "-122.528843"]]\'></div>'); | ||
it('initializes map', function() { | ||
GeoViewer.init(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters