function getUrl(map) {
var center = map.getCenter(),
zoom = map.getZoom();
+
return (window.location.hostname.match(/^www\.openstreetmap\.org/i) ?
'http://openstreetmap.org/?' : '/?') +
querystring.stringify({
var $ui = $('<div>')
.attr('class', 'layers-ui');
- $('<h2>')
- .text(I18n.t('javascripts.key.title'))
- .appendTo($ui);
+ $('<section>')
+ .appendTo($ui)
+ .append(
+ $('<h2>')
+ .text(I18n.t('javascripts.key.title')));
var $section = $('<section>')
.appendTo($ui);
var $ui = $('<div>')
.attr('class', 'layers-ui');
- $('<h2>')
- .text(I18n.t('javascripts.map.layers.header'))
- .appendTo($ui);
+ $('<section>')
+ .appendTo($ui)
+ .append(
+ $('<h2>')
+ .text(I18n.t('javascripts.map.layers.header')));
if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') {
var overlaySection = $('<section>')
var $ui = $('<div>')
.attr('class', 'share-ui');
- $('<h2>')
- .text(I18n.t('javascripts.share.title'))
- .appendTo($ui);
+ $('<section>')
+ .appendTo($ui)
+ .append(
+ $('<h2>')
+ .text(I18n.t('javascripts.share.title')));
- var $share_link = $('<div></div>')
+ var $share_link = $('<section></section>')
.appendTo($ui);
var $title = $('<h3></h3>')
current = $();
} else {
$(sidebar).show();
- controlContainer.css({paddingRight: '200px'});
+ controlContainer.css({paddingRight: '250px'});
current = pane;
}
position: absolute;
display: none;
right: 0;
- width: 200px;
+ width: 250px;
height: 100%;
background: white;
+ overflow: auto;
}
-.layers-ui {
+#map-ui {
section {
border-top: 1px solid #868e85;
padding: 15px;
}
+ section:first-child {
+ border-top:0;
+ }
+
+ h2 {
+ margin:0;
+ }
+
li {
border-radius: 4px;
overflow: hidden;
/* Rules for the map key which appears in the popout sidebar */
#mapkey {
- padding: $lineheight $lineheight 0 $lineheight;
.mapkey-table-key img {
display: block;
margin-left: auto;