Work with new ol.projection package
This commit is contained in:
@@ -2,13 +2,13 @@ goog.require('ol.Collection');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.Projection');
|
||||
goog.require('ol.RendererHint');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.geom.LineString');
|
||||
goog.require('ol.geom.Point');
|
||||
goog.require('ol.layer.TileLayer');
|
||||
goog.require('ol.layer.Vector');
|
||||
goog.require('ol.projection');
|
||||
goog.require('ol.source.MapQuestOpenAerial');
|
||||
goog.require('ol.source.Vector');
|
||||
|
||||
@@ -18,7 +18,7 @@ var raster = new ol.layer.TileLayer({
|
||||
});
|
||||
|
||||
var source = new ol.source.Vector({
|
||||
projection: ol.Projection.getFromCode('EPSG:3857')
|
||||
projection: ol.projection.getFromCode('EPSG:3857')
|
||||
});
|
||||
|
||||
source.addFeatures([
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('ol.layer.Vector', function() {
|
||||
it('groups equal symbolizers', function() {
|
||||
var layer = new ol.layer.Vector({
|
||||
source: new ol.source.Vector({
|
||||
projection: ol.Projection.getFromCode('EPSG:4326')
|
||||
projection: ol.projection.getFromCode('EPSG:4326')
|
||||
}),
|
||||
style: new ol.style.Style({
|
||||
rules: [
|
||||
|
||||
@@ -9,7 +9,7 @@ describe('ol.source.Vector', function() {
|
||||
|
||||
it('works', function() {
|
||||
vectorSource = new ol.source.Vector({
|
||||
projection: ol.Projection.getFromCode('EPSG:4326')
|
||||
projection: ol.projection.getFromCode('EPSG:4326')
|
||||
});
|
||||
vectorSource.addFeatures([new ol.Feature()]);
|
||||
expect(vectorSource.getFeatures().length).toEqual(1);
|
||||
@@ -48,7 +48,7 @@ describe('ol.source.Vector', function() {
|
||||
})
|
||||
];
|
||||
vectorSource = new ol.source.Vector({
|
||||
projection: ol.Projection.getFromCode('EPSG:4326')
|
||||
projection: ol.projection.getFromCode('EPSG:4326')
|
||||
});
|
||||
vectorSource.addFeatures(features);
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ describe('ol.style.Style', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
describe('ol.style.Style.applyDefaultStyle()', function() {
|
||||
var feature = new ol.Feature();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user