crea:intro
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crea:intro [2018/09/05 17:00] – bblonski | crea:intro [2021/02/24 00:58] (current) – [Map] bblonski | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| [[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.1536166817.txt.gz · Last modified: by bblonski
