diff --git a/style/css/ol.thematic.css b/style/css/ol.thematic.css index 08f66f1..93c0dfa 100644 --- a/style/css/ol.thematic.css +++ b/style/css/ol.thematic.css @@ -1,3 +1,5 @@ +/* this just contains some styles that are used in the tests of OpenLayers-Symbology */ + div#map { width: 600px; height: 600px; @@ -77,3 +79,80 @@ h4 { font-size: 12px; margin-bottom: 14px; } + +/* these styles are just for the olson cartogram reproduction */ + +div#container { + width: 800px; + height: 533px; + border: 2px solid #000; + + position: relative; +} + +div.olson#map { + width: 100%; + height: 100%; + + border: none; +} + +div#container h1 { + font-size: 14px; + font-family: sans-serif; + text-transform: uppercase; + + position: absolute; + + top: 17px; + left: 230px; + + color: #333; + + letter-spacing: 2px; +} + +div#cartogramLegend { + position: absolute; + left: 22px; + bottom: 66px; + + clear: right; +} + +div#legendChip { + width: 18px; + height: 18px; + + background-color: #ddd; + border: 1px solid #333; + + float: left; +} + + +p#legendText { + float: left; + + padding-top: 0; + margin-top: 4px; + + margin-left: 6px; + + font-size: 11px; + font-family: sans-serif; + + letter-spacing: 1px; +} + +p#credits { + position: absolute; + + margin-bottom: 4px; + left: 20px; + bottom: 0; + + font-size: 10px; + font-family: sans-serif; + letter-spacing: 1px; +} \ No newline at end of file diff --git a/tests/cartogram.choro.html b/tests/cartogram.choro.html index 4df3140..1019dc2 100644 --- a/tests/cartogram.choro.html +++ b/tests/cartogram.choro.html @@ -48,7 +48,7 @@ url : url, indicator : indicator, classed : false, - defaultSymbolizer : { 'strokeColor' : '#ff0000', 'strokeWidth' : 1, 'strokeOpacity' : .5, 'fillOpacity' : .5, 'fillColor' : '#0099cc' }, + defaultSymbolizer : { 'strokeColor' : '#ffffff', 'strokeWidth' : 1, 'strokeOpacity' : .5, 'fillOpacity' : .5, 'fillColor' : '#0099cc' }, requestSuccess : function( request ) { map.zoomToExtent( this.layer.getDataExtent(), true ); @@ -60,7 +60,10 @@ function colorCartogram() { - + var choroLayer = new ol.thematic.Choropleth( map, { + indicator : indicator, + layer : thematicLayer.layer + }); }; diff --git a/tests/colorbrewer3.html b/tests/colorbrewer3.html deleted file mode 100644 index e69de29..0000000 diff --git a/tests/olson.html b/tests/olson.html index 9f0d6b3..1346977 100644 --- a/tests/olson.html +++ b/tests/olson.html @@ -1,16 +1,13 @@ - OpenLayers-Symbology Proportional Symbol example + NUMBER OF PERSONS 65 YEARS OF AGE AND OLDER: 2010 - - - - - - + + + @@ -19,333 +16,90 @@ - - -

OpenLayers-Symbology Cartogram example

- -
+
+

Number of persons 65 years and older: 2010

-
-

controls:

+
-
-

data

- -
-

attribute

- -
+
+
+

100,000 Persons 65 and over

-
-

classification

- -
- Classed -
- -
-

number of classes

- -
- -
-

classification method

- -
- -
-

the legend is the key

-
-
- -
-
+

Source: U.S. Bureau of the Census

+
\ No newline at end of file