-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an overview map showing a limited number of features that need as…
…sessing.
- Loading branch information
1 parent
4107ab3
commit 88baa18
Showing
5 changed files
with
51 additions
and
2 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
%h1= t ".unprocessed_entities" | |||
|
|||
#map | |||
:javascript | |||
var map = new OpenLayers.Map('map', {projection : new OpenLayers.Projection("EPSG:900913"),displayProjection : new OpenLayers.Projection("EPSG:4326")}); | |||
map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap")); | |||
map.addLayer(new OpenLayers.Layer.OSM("OpenCycleMap", ["http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", | |||
"http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", | |||
"http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"])); | |||
map.addControl(new OpenLayers.Control.LayerSwitcher()); | |||
map.addControl(new OpenLayers.Control.MousePosition()); | |||
vectors = new OpenLayers.Layer.Vector("Vectors", {projection : new OpenLayers.Projection("EPSG:4326"), styleMap : MapStyle.displayStyle()}); | |||
var format = new OpenLayers.Format.GeoJSON({internalProjection : new OpenLayers.Projection("EPSG:900913"),externalProjection : new OpenLayers.Projection("EPSG:4326")}); | |||
var format_plain = new OpenLayers.Format.GeoJSON(); | |||
vectors.addFeatures(format.read(#{@geojson})); | |||
map.addLayer(vectors); | |||
map.zoomToExtent(vectors.getDataExtent()); |
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