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 23:16] – [Map] bblonski | crea:intro [2021/02/24 00:58] (current) – [Map] bblonski | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| < | < | ||
| - | <div id=" | + | |
| - | + | <div id=" | |
| - | <script src=" | + | <link rel=" |
| + | < | ||
| <script type=" | <script type=" | ||
| - | var map; | + | |
| - | function init(){ | + | var extent = [0,0,2048, 2048]; |
| - | map = new OpenLayers.Map(' | + | var projection = new ol.proj.Projection({ |
| - | + | | |
| - | var graphic = new OpenLayers.Layer.Image( | + | units: ' |
| - | ' | + | extent: extent |
| - | ' | + | }); |
| - | new OpenLayers.Bounds(-180, | + | |
| - | new OpenLayers.Size(580, | + | map = new ol.Map({ |
| - | {numZoomLevels: 3} | + | target: |
| - | ); | + | |
| - | + | new ol.layer.Image({ | |
| - | graphic.events.on({ | + | |
| - | loadstart: function() { | + | |
| - | | + | |
| - | }, | + | |
| - | loadend: function() { | + | |
| - | OpenLayers.Console.log(" | + | }) |
| - | } | + | |
| - | | + | |
| - | + | | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | projection: projection, |
| - | | + | |
| - | ); | + | |
| - | + | }); | |
| - | | + | } |
| - | | + | init(); |
| - | | + | </ |
| - | } | + | |
| - | | + | |
| </ | </ | ||
crea/intro.1536189383.txt.gz · Last modified: by bblonski
