Compare commits
13 Commits
docs-2.8@3
...
docs-2.8@3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d025c74c9 | ||
|
|
0494b1fc18 | ||
|
|
20feef1ae6 | ||
|
|
09ea4c15ea | ||
|
|
7275761460 | ||
|
|
14530c2621 | ||
|
|
ed1044e352 | ||
|
|
30d7044a6a | ||
|
|
33a49eb220 | ||
|
|
a92d0ef692 | ||
|
|
a1a16b6877 | ||
|
|
de8e596024 | ||
|
|
15297db88e |
50
authors.txt
50
authors.txt
@@ -1,25 +1,25 @@
|
|||||||
OpenLayers contributors:
|
OpenLayers contributors:
|
||||||
Howard Butler
|
Howard Butler
|
||||||
Bertil Chaupis
|
Bertil Chaupis
|
||||||
John Cole
|
John Cole
|
||||||
Jeff Dege
|
Jeff Dege
|
||||||
Schuyler Erle
|
Schuyler Erle
|
||||||
Christian López Espínola
|
Christian López Espínola
|
||||||
John Frank
|
John Frank
|
||||||
Sean Gilles
|
Sean Gilles
|
||||||
Pierre Giraud
|
Pierre Giraud
|
||||||
Andreas Hocevar
|
Andreas Hocevar
|
||||||
Philip Lindsay
|
Philip Lindsay
|
||||||
Corey Puffault
|
Corey Puffault
|
||||||
Tim Schaub
|
Tim Schaub
|
||||||
Christopher Schmidt
|
Christopher Schmidt
|
||||||
Cameron Shorter
|
Cameron Shorter
|
||||||
Paul Spencer
|
Paul Spencer
|
||||||
James Stembridge
|
James Stembridge
|
||||||
Erik Uzureau
|
Erik Uzureau
|
||||||
Bill Woodall
|
Bill Woodall
|
||||||
Steve Woodbridge
|
Steve Woodbridge
|
||||||
|
|
||||||
|
|
||||||
OpenLayers is graciously supported by MetaCarta, Inc.
|
OpenLayers is graciously supported by MetaCarta, Inc.
|
||||||
<http://www.metacarta.com>.
|
<http://www.metacarta.com>.
|
||||||
|
|||||||
@@ -1,49 +1,49 @@
|
|||||||
Customizing OpenLayers
|
Customizing OpenLayers
|
||||||
======================
|
======================
|
||||||
|
|
||||||
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
|
OpenLayers is designed to fit many needs -- fitting in alongside all kinds of
|
||||||
various applications which are currently in use.
|
various applications which are currently in use.
|
||||||
|
|
||||||
Currently, OpenLayers supports a 'theme' option when creating a map. This
|
Currently, OpenLayers supports a 'theme' option when creating a map. This
|
||||||
theme option allows you to specify the location of a CSS theme which should
|
theme option allows you to specify the location of a CSS theme which should
|
||||||
be included.
|
be included.
|
||||||
|
|
||||||
A default theme is available as an example in the theme/ directory: the setup
|
A default theme is available as an example in the theme/ directory: the setup
|
||||||
is:
|
is:
|
||||||
|
|
||||||
* theme/
|
* theme/
|
||||||
* theme/default/
|
* theme/default/
|
||||||
* theme/default/style.css
|
* theme/default/style.css
|
||||||
* theme/default/img/
|
* theme/default/img/
|
||||||
|
|
||||||
Currently, the OpenLayers code does not support class names, and therefore,
|
Currently, the OpenLayers code does not support class names, and therefore,
|
||||||
it is not possible to control many aspects of OpenLayers code with CSS
|
it is not possible to control many aspects of OpenLayers code with CSS
|
||||||
classes. However, with this framework in place, we expect to invest time
|
classes. However, with this framework in place, we expect to invest time
|
||||||
to make existing features and new features use the CSS theming framework
|
to make existing features and new features use the CSS theming framework
|
||||||
where apropriate.
|
where apropriate.
|
||||||
|
|
||||||
|
|
||||||
Class Naming
|
Class Naming
|
||||||
============
|
============
|
||||||
Elements should have class names which are descriptive of the Javascript
|
Elements should have class names which are descriptive of the Javascript
|
||||||
class from which they come. For example, the main layer switcher element
|
class from which they come. For example, the main layer switcher element
|
||||||
in the OpenLayers.Control.LayerSwitcher would be classed:
|
in the OpenLayers.Control.LayerSwitcher would be classed:
|
||||||
|
|
||||||
olControlLayerSwitcher
|
olControlLayerSwitcher
|
||||||
|
|
||||||
This would allow users to add to their style.css class in their theme,
|
This would allow users to add to their style.css class in their theme,
|
||||||
changing, for example:
|
changing, for example:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
.olControlLayerSwitcher input {
|
.olControlLayerSwitcher input {
|
||||||
width:10px;
|
width:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
Sub elements of a particular control can add to the class name:
|
Sub elements of a particular control can add to the class name:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
.olControlLayerSwitcherBaseLabel {
|
.olControlLayerSwitcherBaseLabel {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
Automatically generated OpenLayers API documentation is online:
|
Automatically generated OpenLayers API documentation is online:
|
||||||
|
|
||||||
http://dev.openlayers.org/docs/overview-tree.html
|
http://dev.openlayers.org/docs/overview-tree.html
|
||||||
|
|||||||
Reference in New Issue
Block a user