Skip to content

Commit fa843e2

Browse files
committed
Unmixing line endings. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
1 parent 85fff7e commit fa843e2

File tree

15 files changed

+1033
-1033
lines changed

15 files changed

+1033
-1033
lines changed

art/marker.svg

+24-24
Loading

doc/customization

+49-49
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
Customizing OpenLayers
2-
======================
3-
4-
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
5-
various applications which are currently in use.
6-
7-
Currently, OpenLayers supports a 'theme' option when creating a map. This
8-
theme option allows you to specify the location of a CSS theme which should
9-
be included.
10-
11-
A default theme is available as an example in the theme/ directory: the setup
12-
is:
13-
14-
* theme/
15-
* theme/default/
16-
* theme/default/style.css
17-
* theme/default/img/
18-
19-
Currently, the OpenLayers code does not support class names, and therefore,
20-
it is not possible to control many aspects of OpenLayers code with CSS
21-
classes. However, with this framework in place, we expect to invest time
22-
to make existing features and new features use the CSS theming framework
23-
where apropriate.
24-
25-
26-
Class Naming
27-
============
28-
Elements should have class names which are descriptive of the Javascript
29-
class from which they come. For example, the main layer switcher element
30-
in the OpenLayers.Control.LayerSwitcher would be classed:
31-
32-
olControlLayerSwitcher
33-
34-
This would allow users to add to their style.css class in their theme,
35-
changing, for example:
36-
37-
::
38-
39-
.olControlLayerSwitcher input {
40-
width:10px;
41-
}
42-
43-
Sub elements of a particular control can add to the class name:
44-
45-
::
46-
47-
.olControlLayerSwitcherBaseLabel {
48-
color: red;
49-
}
1+
Customizing OpenLayers
2+
======================
3+
4+
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
5+
various applications which are currently in use.
6+
7+
Currently, OpenLayers supports a 'theme' option when creating a map. This
8+
theme option allows you to specify the location of a CSS theme which should
9+
be included.
10+
11+
A default theme is available as an example in the theme/ directory: the setup
12+
is:
13+
14+
* theme/
15+
* theme/default/
16+
* theme/default/style.css
17+
* theme/default/img/
18+
19+
Currently, the OpenLayers code does not support class names, and therefore,
20+
it is not possible to control many aspects of OpenLayers code with CSS
21+
classes. However, with this framework in place, we expect to invest time
22+
to make existing features and new features use the CSS theming framework
23+
where apropriate.
24+
25+
26+
Class Naming
27+
============
28+
Elements should have class names which are descriptive of the Javascript
29+
class from which they come. For example, the main layer switcher element
30+
in the OpenLayers.Control.LayerSwitcher would be classed:
31+
32+
olControlLayerSwitcher
33+
34+
This would allow users to add to their style.css class in their theme,
35+
changing, for example:
36+
37+
::
38+
39+
.olControlLayerSwitcher input {
40+
width:10px;
41+
}
42+
43+
Sub elements of a particular control can add to the class name:
44+
45+
::
46+
47+
.olControlLayerSwitcherBaseLabel {
48+
color: red;
49+
}

doc/readme.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Automatically generated OpenLayers API documentation is online:
2-
3-
http://dev.openlayers.org/apidocs
4-
5-
More information on documentation is available from:
6-
7-
http://trac.openlayers.org/wiki/Documentation
1+
Automatically generated OpenLayers API documentation is online:
2+
3+
http://dev.openlayers.org/apidocs
4+
5+
More information on documentation is available from:
6+
7+
http://trac.openlayers.org/wiki/Documentation

examples/pan-zoom-panels.html

+56-56
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
<html>
2-
<head>
3-
<title>Pan and Zoom Panels</title>
4-
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5-
6-
<!--
7-
-- Special stylesheet inclusion for ie6, which doesn't handle the alpha
8-
-- channel of images correctly. The special ie6 stylesheet will only
9-
-- be included if the browser running is ie6. For now, the only thing it
10-
-- does is load alternative, non-alpha pngs for the zoom/pan panels.
11-
-->
12-
13-
<!--[if lte IE 6]>
14-
<link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
15-
<![endif]-->
16-
17-
<link rel="stylesheet" href="style.css" type="text/css" />
18-
<script type="text/javascript" src="../lib/OpenLayers.js"></script>
19-
<script>
20-
var map;
21-
var lon = 5;
22-
var lat = 40;
23-
var zoom = 5;
24-
function init(){
25-
map = new OpenLayers.Map("map", {
26-
controls: [
27-
new OpenLayers.Control.Navigation(),
28-
new OpenLayers.Control.PanPanel(),
29-
new OpenLayers.Control.ZoomPanel()
30-
]
31-
});
32-
33-
var wms = new OpenLayers.Layer.WMS(
34-
"OpenLayers WMS",
35-
"http://labs.metacarta.com/wms/vmap0",
36-
{layers: 'basic'}
37-
);
38-
map.addLayers([wms]);
39-
40-
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
41-
}
42-
</script>
43-
</head>
44-
<body onload='init();'>
45-
<h1 id="title">Pan and Zoom Panels</h1>
46-
<div id="tags"></div>
47-
<p id="shortdesc">Customizable pan and zoom panels</p>
48-
</p>
49-
<div id="map" class="smallmap"></div>
50-
<p id="docs">
51-
The pan and zoom panels allow you to use CSS styling to change the
52-
look and feel of the panels, including changing their position
53-
and their icons without needing to change any code.
54-
</p>
55-
</body>
56-
</html>
1+
<html>
2+
<head>
3+
<title>Pan and Zoom Panels</title>
4+
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5+
6+
<!--
7+
-- Special stylesheet inclusion for ie6, which doesn't handle the alpha
8+
-- channel of images correctly. The special ie6 stylesheet will only
9+
-- be included if the browser running is ie6. For now, the only thing it
10+
-- does is load alternative, non-alpha pngs for the zoom/pan panels.
11+
-->
12+
13+
<!--[if lte IE 6]>
14+
<link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
15+
<![endif]-->
16+
17+
<link rel="stylesheet" href="style.css" type="text/css" />
18+
<script type="text/javascript" src="../lib/OpenLayers.js"></script>
19+
<script>
20+
var map;
21+
var lon = 5;
22+
var lat = 40;
23+
var zoom = 5;
24+
function init(){
25+
map = new OpenLayers.Map("map", {
26+
controls: [
27+
new OpenLayers.Control.Navigation(),
28+
new OpenLayers.Control.PanPanel(),
29+
new OpenLayers.Control.ZoomPanel()
30+
]
31+
});
32+
33+
var wms = new OpenLayers.Layer.WMS(
34+
"OpenLayers WMS",
35+
"http://labs.metacarta.com/wms/vmap0",
36+
{layers: 'basic'}
37+
);
38+
map.addLayers([wms]);
39+
40+
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
41+
}
42+
</script>
43+
</head>
44+
<body onload='init();'>
45+
<h1 id="title">Pan and Zoom Panels</h1>
46+
<div id="tags"></div>
47+
<p id="shortdesc">Customizable pan and zoom panels</p>
48+
</p>
49+
<div id="map" class="smallmap"></div>
50+
<p id="docs">
51+
The pan and zoom panels allow you to use CSS styling to change the
52+
look and feel of the panels, including changing their position
53+
and their icons without needing to change any code.
54+
</p>
55+
</body>
56+
</html>

0 commit comments

Comments
 (0)