Skip to content

Commit

Permalink
update mapbbcode to latest 1.2-dev and leaflet.draw to #242
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed Dec 17, 2013
1 parent 64a16fa commit 6101dc7
Show file tree
Hide file tree
Showing 30 changed files with 712 additions and 706 deletions.
4 changes: 0 additions & 4 deletions _includes/mapdemo.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<link rel="stylesheet" href="/lib/leaflet.css" />
<link rel="stylesheet" href="/lib/leaflet.draw.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="/lib/leaflet.ie.css" />
<link rel="stylesheet" href="/lib/leaflet.draw.ie.css" />
<![endif]-->
<script src="/lib/leaflet.js"></script>
<script src="/lib/leaflet.draw.js"></script>
<script src="/lib/mapbbcode.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion _includes/plugins-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// L.FunctionButtons
var mapfb = createMap('mapfb');
var fb = L.functionButtons(['Saint-Petersburg', 'Hide buttons'], { position: 'topleft' });
var fb = L.functionButtons([{ content: 'Saint-Petersburg' }, { content: 'Hide buttons'}], { position: 'topleft' });
var fbspb = false;
fb.on('clicked', function(data) {
if( data.idx == 0 ) {
Expand Down
3 changes: 0 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<link rel="stylesheet" href="/style.css">
{% if page.needmap %}
<link rel="stylesheet" href="/lib/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="/lib/leaflet.ie.css" />
<![endif]-->
<script src="/lib/leaflet.js"></script>
<script src="/lib/mapbbcode.js"></script>
<script>
Expand Down
6 changes: 1 addition & 5 deletions _layouts/guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/lib/leaflet.css" />
<link rel="stylesheet" href="/lib/leaflet.draw.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="/lib/leaflet.ie.css" />
<link rel="stylesheet" href="/lib/leaflet.draw.ie.css" />
<![endif]-->
<script src="/lib/leaflet.js"></script>
<script src="/lib/leaflet.draw.js"></script>
<script src="/lib/mapbbcode.js"></script>
<script src="/lib/mapbbcode-config.js"></script>
<script src="/lib/lang/{{ page.maplang }}.js"></script>
<script src="/lib/lang/{{ page.maplang }}.Config.js"></script>
<script src="/lib/lang/{{ page.maplang }}.config.js"></script>
</head>
<body>
{% include langbar.html %}
Expand Down
2 changes: 1 addition & 1 deletion admin.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: guide
title: Administrator's Guide
maplang: English
maplang: en
---

## Configuration Panel
Expand Down
Binary file modified dist/mapbbcode-latest.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion guide.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: guide
title: User's Guide
maplang: English
maplang: en
---

This is a map. It behaves like any other map on the web: you can drag it, click "+" and "-" buttons to zoom in and out, change map layers with a button in top right corner. There are markers which sometimes open a popup when you click on them, and there are other geometrical figures that do nothing.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: index
maplang: English
maplang: en
---
<h1>[map] BBCode</h1>

Expand Down
2 changes: 1 addition & 1 deletion leaflet.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ When clicked, the control emits a Leaflet event `clicked` with a single data pro
[Download](https://raw.github.com/MapBBCode/mapbbcode/master/src/FunctionButton.js)

```javascript
var btn = L.functionButtons(['Saint-Petersburg', 'Hide buttons']);
var btn = L.functionButtons([{ content: 'Saint-Petersburg' }, { content: 'Hide buttons'}]);
btn.on('clicked', function(data) {
if( data.idx == 0 ) {
map.setView([59.939, 30.315], 13);
Expand Down
9 changes: 5 additions & 4 deletions lib/LayerList.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ window.layerList = {
list: {
"OpenStreetMap": "L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OpenStreetMap</a>', minZoom: 0, maxZoom: 19 })",
"OpenStreetMap DE": "L.tileLayer('http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', { attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OpenStreetMap</a>', minZoom: 0, maxZoom: 18 })",
"OpenStreetMap FR": "L.tileLayer('http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', { subdomains: 'abc', attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OpenStreetMap</a> | Tiles &copy <a href=\"http://tile.openstreetmap.fr/\">OSM France</a>', minZoom: 0, maxZoom: 20 })",
"Hike & Bike": "L.layerGroup([ L.tileLayer('http://toolserver.org/tiles/hikebike/{z}/{x}/{y}.png', { attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OSM</a> | Tiles &copy; <a href=\"http://hikebikemap.de/\">Colin Marquardt</a>' } ), L.tileLayer('http://toolserver.org/~cmarqu/hill/{z}/{x}/{y}.png', { minZoom: 0, maxZoom: 17 }) ])",
"CycleMap": "L.tileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', { attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OSM</a> | Tiles &copy; <a href=\"http://www.opencyclemap.org\">Andy Allan</a>', minZoom: 0, maxZoom: 18 })",
"OpenMapSurfer": "L.tileLayer('http://openmapsurfer.uni-hd.de/tiles/roads/x={x}&y={y}&z={z}', { attribution: 'Map &copy; <a href=\"http://openstreetmap.org\">OSM</a> | Tiles &copy; <a href=\"http://giscience.uni-hd.de/\">GIScience Heidelberg</a>', minZoom: 0, maxZoom: 19 })",
Expand Down Expand Up @@ -93,14 +94,14 @@ window.layerList = {
if( layer ) {
result.push(layer);
if( osmidx < 0 && this.isOpenStreetMapLayer(layer) )
osmidx = i;
osmidx = result.length - 1;
}
}

if( osmidx > 0 ) {
var tmp = l[i];
l[i] = l[0];
l[0] = tmp;
var tmp = result[osmidx];
result[osmidx] = result[0];
result[0] = tmp;
} else if( osmidx < 0 && result.length > 0 ) {
result.unshift(this.getLeafletLayer('OpenStreetMap', LL));
}
Expand Down
Binary file modified lib/images/spritesheet-2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/images/spritesheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions lib/lang/English.Config.js

This file was deleted.

65 changes: 0 additions & 65 deletions lib/lang/English.js

This file was deleted.

22 changes: 0 additions & 22 deletions lib/lang/Russian.Config.js

This file was deleted.

65 changes: 0 additions & 65 deletions lib/lang/Russian.js

This file was deleted.

Loading

0 comments on commit 6101dc7

Please sign in to comment.