crea:intro
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crea:intro [2017/12/05 00:34] – [Rules] bblonski | crea:intro [2021/02/24 00:58] (current) – [Map] bblonski | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| [[crea: | [[crea: | ||
| + | |||
| + | [[crea: | ||
| --- | --- | ||
| Line 30: | Line 32: | ||
| [[crea: | [[crea: | ||
| + | |||
| + | [[crea: | ||
| + | |||
| + | ## Map | ||
| + | |||
| + | < | ||
| + | | ||
| + | <div id=" | ||
| + | <link rel=" | ||
| + | <script type=" | ||
| + | <script type=" | ||
| + | var map; | ||
| + | var extent = [0,0,2048, 2048]; | ||
| + | var projection = new ol.proj.Projection({ | ||
| + | code: ' | ||
| + | units: ' | ||
| + | extent: extent | ||
| + | }); | ||
| + | function init(){ | ||
| + | map = new ol.Map({ | ||
| + | target: ' | ||
| + | layers: [ | ||
| + | new ol.layer.Image({ | ||
| + | source: new ol.source.ImageStatic({ | ||
| + | url: ' | ||
| + | projection: projection, | ||
| + | imageExtent: | ||
| + | }) | ||
| + | }) | ||
| + | ], | ||
| + | view: new ol.View({ | ||
| + | zoom: 1, | ||
| + | maxZoom: 5, | ||
| + | minZoom: 1, | ||
| + | center: [1024, 1024], | ||
| + | projection: projection, | ||
| + | extent: extent | ||
| + | }) | ||
| + | }); | ||
| + | } | ||
| + | init(); | ||
| + | </ | ||
| + | </ | ||
crea/intro.1512434081.txt.gz · Last modified: by bblonski
