User Tools

Site Tools


crea:intro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crea:intro [2017/12/05 01:31] – [Rules] bblonskicrea:intro [2021/02/24 00:58] (current) – [Map] bblonski
Line 22: Line 22:
  
 [[crea:Threats]] [[crea:Threats]]
 +
 +[[crea:Campaign1]]
  
 --- ---
Line 32: Line 34:
  
 [[crea:Magic]] [[crea:Magic]]
 +
 +## Map
 +
 +<html>
 +    
 +<div id="map" class="map"></div>
 +<link rel="stylesheet" href="https://openlayers.org/en/v5.2.0/css/ol.css" type="text/css">
 +<script type="text/javascript" src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.2.0/build/ol.js"></script>
 +<script type="text/javascript">
 +    var map;
 +    var extent = [0,0,2048, 2048];
 +    var projection = new ol.proj.Projection({
 +        code: 'crea-image',
 +        units: 'pixels',
 +        extent: extent
 +    });
 +    function init(){
 +        map = new ol.Map({
 +            target: 'map',
 +            layers: [
 +                new ol.layer.Image({
 +                    source: new ol.source.ImageStatic({
 +                        url: 'https://wiki.blonski.me/_media/crea/map_slope.png',
 +                        projection: projection,
 +                        imageExtent: extent
 +                    })
 +                })
 +            ],
 +            view: new ol.View({
 +                zoom: 1,
 +                maxZoom: 5,
 +                minZoom: 1,
 +                center: [1024, 1024],
 +                projection: projection,
 +                extent: extent
 +            })
 +        });
 +    }
 +    init();
 +    </script>
 +</html>
crea/intro.1512437512.txt.gz · Last modified: by bblonski

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki