Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+25 -25
View File
@@ -1,30 +1,30 @@
goog.require('ol.Feature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.geom.Point');
goog.require('ol.layer.Vector');
goog.require('ol.source.Vector');
goog.require('ol.style.Fill');
goog.require('ol.style.RegularShape');
goog.require('ol.style.Stroke');
goog.require('ol.style.Style');
import _ol_Feature_ from '../src/ol/Feature.js';
import _ol_Map_ from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import _ol_geom_Point_ from '../src/ol/geom/Point.js';
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
import _ol_style_Fill_ from '../src/ol/style/Fill.js';
import _ol_style_RegularShape_ from '../src/ol/style/RegularShape.js';
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
import _ol_style_Style_ from '../src/ol/style/Style.js';
var stroke = new ol.style.Stroke({color: 'black', width: 1});
var stroke = new _ol_style_Stroke_({color: 'black', width: 1});
var styles = {
'square': new ol.style.Style({
image: new ol.style.RegularShape({
fill: new ol.style.Fill({color: 'blue'}),
'square': new _ol_style_Style_({
image: new _ol_style_RegularShape_({
fill: new _ol_style_Fill_({color: 'blue'}),
stroke: stroke,
points: 4,
radius: 80,
angle: Math.PI / 4
})
}),
'triangle': new ol.style.Style({
image: new ol.style.RegularShape({
fill: new ol.style.Fill({color: 'red'}),
'triangle': new _ol_style_Style_({
image: new _ol_style_RegularShape_({
fill: new _ol_style_Fill_({color: 'red'}),
stroke: stroke,
points: 3,
radius: 80,
@@ -32,9 +32,9 @@ var styles = {
angle: 0
})
}),
'star': new ol.style.Style({
image: new ol.style.RegularShape({
fill: new ol.style.Fill({color: 'green'}),
'star': new _ol_style_Style_({
image: new _ol_style_RegularShape_({
fill: new _ol_style_Fill_({color: 'green'}),
stroke: stroke,
points: 5,
radius: 80,
@@ -46,14 +46,14 @@ var styles = {
function createLayer(coordinates, style, zIndex) {
var feature = new ol.Feature(new ol.geom.Point(coordinates));
var feature = new _ol_Feature_(new _ol_geom_Point_(coordinates));
feature.setStyle(style);
var source = new ol.source.Vector({
var source = new _ol_source_Vector_({
features: [feature]
});
var vectorLayer = new ol.layer.Vector({
var vectorLayer = new _ol_layer_Vector_({
source: source
});
vectorLayer.setZIndex(zIndex);
@@ -69,10 +69,10 @@ var layers = [];
layers.push(layer1);
layers.push(layer2);
var map = new ol.Map({
var map = new _ol_Map_({
layers: layers,
target: 'map',
view: new ol.View({
view: new _ol_View_({
center: [0, 0],
zoom: 18
})