GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mapbbcode/examples/config.html at master · MapBBCode/mapbbcode

Expand file tree

/

config.html

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
50 lines (46 loc) · 2.08 KB
/

config.html

Copy path

File metadata and controls

50 lines (46 loc) · 2.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../dist/lib/leaflet.css" />
<script src="../dist/lib/leaflet.js"></script>
<script src="../src/config/MapBBCodeUI.Config.js"></script>
<script src="../src/strings/English.Config.js"></script>
<script src="../src/controls/FunctionButton.js"></script>
<script src="../src/controls/StaticLayerSwitcher.js"></script>
<script src="../src/layers/LayerList.js"></script>
<script src="../src/layers/Esri.js"></script>
<script src="../src/layers/Google.js"></script>
<div>
<select id="layer_select" size="1"></select>
<input type="button" id="addbutton"/>
<span id="key_row"><span id="key_title"></span>
<input type="text" maxlength="80" size="40" id="key_value"></span>
</div>
<table style="border: 1px solid black; width: 99%;"><tr><td id="config">
</td><td id="result" style="width: 200px; border-left: 1px solid black; font-family: sans-serif; font-size: 12pt;"></td></tr></table>
<script>
var config = new MapBBCodeConfig({ editorInWindow: false, layers: ['OpenStreetMap', 'CycleMap'] });
config.on('show change', function(options) {
var result = '';
result += 'layers: ' + options.layers.join(',') + '<br>';
result += 'default zoom: ' + options.defaultZoom + '<br>';
result += 'default pos: ' + options.defaultPosition[0] + ', ' + options.defaultPosition[1] + '<br>';
if( !options.fullFromStart )
result += 'view size: ' + options.viewWidth + 'x' + options.viewHeight + '<br>';
else
result += 'view pane is full from start<br>';
result += 'full view height: ' + options.fullViewHeight + '<br>';
if( options.editorInWindow )
result += 'editor window size: ' + options.windowWidth + 'x' + options.windowHeight + '<br>';
else
result += 'editor panel height: ' + options.editorHeight + '<br>';
document.getElementById('result').innerHTML = result;
});
config.bindLayerAdder({
select: 'layer_select',
button: 'addbutton',
keyBlock: 'key_row',
keyTitle: 'key_title',
keyValue: 'key_value'
});
config.show('config');
</script>
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.