new icons for the navigation toolbar, p=jorix, r=me,marcjansen (closes #2946)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11738 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -9,11 +9,16 @@
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.olControlEditingToolbar {
|
.olControlEditingToolbar {
|
||||||
float:left;
|
float:left;
|
||||||
right: 0px;
|
width: auto;
|
||||||
height: 30px;
|
|
||||||
width: 150px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<!--[if lte IE 6]>
|
||||||
|
<style type="text/css">
|
||||||
|
.olControlEditingToolbar {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<![endif]-->
|
||||||
<script src="../lib/Firebug/firebug.js"></script>
|
<script src="../lib/Firebug/firebug.js"></script>
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<link rel="stylesheet" href="style.css" type="text/css" />
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
||||||
<!-- Override the position of the toolbar to make it fit in a small map -->
|
<!-- Override the position of the toolbar to make it fit in a small map -->
|
||||||
<style type='text/css'>
|
<style type='text/css'>
|
||||||
.olControlNavToolbar div {
|
.olControlNavToolbar {
|
||||||
top: 150px;
|
top: 150px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,15 +5,6 @@
|
|||||||
<title>OpenLayers: Custom Navigation Toolbar</title>
|
<title>OpenLayers: Custom Navigation Toolbar</title>
|
||||||
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
|
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="style.css" type="text/css" />
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
||||||
<style type="text/css">
|
|
||||||
#paneldiv {
|
|
||||||
height: 80px;
|
|
||||||
}
|
|
||||||
#paneldiv div {
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var lon = 5;
|
var lon = 5;
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<link rel="stylesheet" href="style.css" type="text/css" />
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
||||||
background-position: -1px 0px ;
|
background-position: -1px -1px;
|
||||||
}
|
}
|
||||||
.olControlEditingToolbar .olControlModifyFeatureItemActive {
|
.olControlEditingToolbar .olControlModifyFeatureItemActive {
|
||||||
background-position: -1px -23px ;
|
background-position: -1px -24px;
|
||||||
}
|
}
|
||||||
label.head {
|
label.head {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<link rel="stylesheet" href="style.css" type="text/css" />
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
.olControlEditingToolbar .olControlModifyFeatureItemInactive {
|
||||||
background-position: -1px 0px ;
|
background-position: -1px -1px;
|
||||||
}
|
}
|
||||||
.olControlEditingToolbar .olControlModifyFeatureItemActive {
|
.olControlEditingToolbar .olControlModifyFeatureItemActive {
|
||||||
background-position: -1px -23px ;
|
background-position: -1px -24px;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
padding: 1em 0 1em;
|
padding: 1em 0 1em;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.2 KiB |
+65
-67
@@ -137,18 +137,6 @@ div.olControlMousePosition {
|
|||||||
padding:5px;
|
padding:5px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.olControlNavToolbar {
|
|
||||||
width:0px;
|
|
||||||
height:0px;
|
|
||||||
}
|
|
||||||
.olControlNavToolbar div {
|
|
||||||
display:block;
|
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
|
||||||
top: 300px;
|
|
||||||
left: 6px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.olControlNavigationHistory {
|
.olControlNavigationHistory {
|
||||||
background-image: url("img/navigation_history.png");
|
background-image: url("img/navigation_history.png");
|
||||||
@@ -170,61 +158,6 @@ div.olControlMousePosition {
|
|||||||
background-position: -24px -24px;
|
background-position: -24px -24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.olControlNavToolbar .olControlNavigationItemActive {
|
|
||||||
background-image: url("img/panning-hand-on.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
.olControlNavToolbar .olControlNavigationItemInactive {
|
|
||||||
background-image: url("img/panning-hand-off.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
.olControlNavToolbar .olControlZoomBoxItemActive {
|
|
||||||
background-image: url("img/drag-rectangle-on.png");
|
|
||||||
background-color: orange;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
.olControlNavToolbar .olControlZoomBoxItemInactive {
|
|
||||||
background-image: url("img/drag-rectangle-off.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar {
|
|
||||||
top: 0px;
|
|
||||||
right: 0px;
|
|
||||||
height: 30px;
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar div {
|
|
||||||
background-image: url("img/editing_tool_bar.png");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
float:right;
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlNavigationItemActive {
|
|
||||||
background-position: -103px -23px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlNavigationItemInactive {
|
|
||||||
background-position: -103px -0px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePointItemActive {
|
|
||||||
background-position: -77px -23px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePointItemInactive {
|
|
||||||
background-position: -77px -0px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePathItemInactive {
|
|
||||||
background-position: -51px 0px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePathItemActive {
|
|
||||||
background-position: -51px -23px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive {
|
|
||||||
background-position: -26px 0px;
|
|
||||||
}
|
|
||||||
.olControlEditingToolbar .olControlDrawFeaturePolygonItemActive {
|
|
||||||
background-position: -26px -23px ;
|
|
||||||
}
|
|
||||||
div.olControlSaveFeaturesItemActive {
|
div.olControlSaveFeaturesItemActive {
|
||||||
background-image: url(img/save_features_on.png);
|
background-image: url(img/save_features_on.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@@ -421,3 +354,68 @@ div.olControlSaveFeaturesItemInactive {
|
|||||||
.olBingAttribution.road {
|
.olBingAttribution.road {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Editing and navigation icons.
|
||||||
|
* (using the editing_tool_bar.png sprint image)
|
||||||
|
*/
|
||||||
|
.olControlNavToolbar ,
|
||||||
|
.olControlEditingToolbar {
|
||||||
|
margin: 5px 5px 0px 0px;
|
||||||
|
}
|
||||||
|
.olControlNavToolbar div,
|
||||||
|
.olControlEditingToolbar div {
|
||||||
|
background-image: url("img/editing_tool_bar.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
margin: 0px 0px 5px 5px;
|
||||||
|
width: 24px;
|
||||||
|
height: 22px;
|
||||||
|
cursor: pointer
|
||||||
|
}
|
||||||
|
/* positions */
|
||||||
|
.olControlEditingToolbar {
|
||||||
|
right: 0px;
|
||||||
|
top: 0px;
|
||||||
|
width: 200px; /* Only for IE6 or IE without DOCTYPE */
|
||||||
|
}
|
||||||
|
.olControlNavToolbar {
|
||||||
|
top: 295px;
|
||||||
|
left: 9px;
|
||||||
|
}
|
||||||
|
/* layouts */
|
||||||
|
.olControlEditingToolbar div {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
/* individual controls */
|
||||||
|
.olControlNavToolbar .olControlNavigationItemInactive,
|
||||||
|
.olControlEditingToolbar .olControlNavigationItemInactive {
|
||||||
|
background-position: -103px -1px;
|
||||||
|
}
|
||||||
|
.olControlNavToolbar .olControlNavigationItemActive ,
|
||||||
|
.olControlEditingToolbar .olControlNavigationItemActive {
|
||||||
|
background-position: -103px -24px;
|
||||||
|
}
|
||||||
|
.olControlNavToolbar .olControlZoomBoxItemInactive {
|
||||||
|
background-position: -128px -1px;
|
||||||
|
}
|
||||||
|
.olControlNavToolbar .olControlZoomBoxItemActive {
|
||||||
|
background-position: -128px -24px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePointItemInactive {
|
||||||
|
background-position: -77px -1px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePointItemActive {
|
||||||
|
background-position: -77px -24px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePathItemInactive {
|
||||||
|
background-position: -51px -1px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePathItemActive {
|
||||||
|
background-position: -51px -24px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive{
|
||||||
|
background-position: -26px -1px;
|
||||||
|
}
|
||||||
|
.olControlEditingToolbar .olControlDrawFeaturePolygonItemActive {
|
||||||
|
background-position: -26px -24px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user