Skip to content

Commit

Permalink
Merge pull request #432 from OpenGeoscience/tweak-examples
Browse files Browse the repository at this point in the history
Tweaking the examples for a new release
  • Loading branch information
jbeezley committed Aug 7, 2015
2 parents 79eaef4 + 810366f commit e5b7b4c
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 26 deletions.
5 changes: 3 additions & 2 deletions examples/common/css/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ html, body {
}

#map {
top: -21px;
width: 100%;
height: calc(100% - 60px);
position: absolute;
top: 60px;
position: relative;
overflow: hidden;
}
2 changes: 1 addition & 1 deletion examples/contour/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $(function () {
x: -157.965,
y: 21.482
},
zoom: 8
zoom: 10
});

// Add the osm layer
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamicData/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(function () {
'use strict';

// Create a map object
var map = geo.map({node: '#map'});
var map = geo.map({node: '#map', zoom: 3});

// Add and start a clock
var clock = map.clock();
Expand Down
4 changes: 2 additions & 2 deletions examples/geoJSON/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.CodeMirror {
position: absolute;
position: absolute !important;
left: 10px;
top: 1px;
top: 80px;
width: calc(50% - 10px);
height: calc(100% - 100px) !important;
z-index: 50;
Expand Down
2 changes: 1 addition & 1 deletion examples/geoJSON/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(function () {
x: -125,
y: 36.5
},
zoom: 1
zoom: 4
});

// Add the osm layer with a custom tile url
Expand Down
2 changes: 1 addition & 1 deletion examples/hurricanes/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ $(function () {
x: 0,
y: 0
},
zoom: 0
zoom: 3
});

// Add the osm layer with a custom tile url
Expand Down
2 changes: 1 addition & 1 deletion examples/jquery-plugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(function () {
x: -100,
y: 40
},
zoom: 1,
zoom: 4,
layers: [{
renderer: 'd3',
features: [{
Expand Down
2 changes: 1 addition & 1 deletion examples/layerEvents/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 1
zoom: 4
});

// Add a base layer
Expand Down
2 changes: 1 addition & 1 deletion examples/layers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 1
zoom: 4
});

// Add a base layer
Expand Down
3 changes: 2 additions & 1 deletion examples/legend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ $(function () {

// Create a map object
var map = geo.map({
node: '#map'
node: '#map',
zoom: 3
});

// Add the osm layer with a custom tile url
Expand Down
2 changes: 1 addition & 1 deletion examples/osm/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 1
zoom: 3
});

// Add the osm layer with a custom tile url
Expand Down
9 changes: 0 additions & 9 deletions examples/picking/example.json

This file was deleted.

2 changes: 1 addition & 1 deletion examples/picking/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 2
zoom: 4
}),
over = 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/points/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 2
zoom: 4.9
});

// Create an osm layer with custom tile url for a white background.
Expand Down
2 changes: 1 addition & 1 deletion examples/ui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(function () {
x: -98.0,
y: 39.5
},
zoom: 1
zoom: 4
});

// Add the osm layer
Expand Down
2 changes: 1 addition & 1 deletion examples/wms/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(function () {
// Create a map object
var map = geo.map({
node: '#map',
zoom: 2,
zoom: 4,
center: {x: -98.0, y: 39.5}
});

Expand Down

0 comments on commit e5b7b4c

Please sign in to comment.