Skip to content
Browse files

Work with new ol.projection package

  • Loading branch information...
1 parent 5a73529 commit d3c4869917bef0041166677f5e627c9706389473 @tschaub tschaub committed Mar 3, 2013
View
4 examples/vector-layer.js
@@ -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([
View
2 test/spec/ol/layer/vectorlayer.test.js
@@ -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: [
View
4 test/spec/ol/source/vectorsource.test.js
@@ -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);
});
View
2 test/spec/ol/style/style.test.js
@@ -29,7 +29,7 @@ describe('ol.style.Style', function() {
});
});
-
+
describe('ol.style.Style.applyDefaultStyle()', function() {
var feature = new ol.Feature();

0 comments on commit d3c4869

Please sign in to comment.
Something went wrong with that request. Please try again.