Skip to content

Commit

Permalink
Work with new ol.projection package
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Mar 3, 2013
1 parent 5a73529 commit d3c4869
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/vector-layer.js
Expand Up @@ -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');

Expand All @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion test/spec/ol/layer/vectorlayer.test.js
Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions test/spec/ol/source/vectorsource.test.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion test/spec/ol/style/style.test.js
Expand Up @@ -29,7 +29,7 @@ describe('ol.style.Style', function() {
});

});

describe('ol.style.Style.applyDefaultStyle()', function() {
var feature = new ol.Feature();

Expand Down

0 comments on commit d3c4869

Please sign in to comment.