Use new projection getter
This commit is contained in:
@@ -23,7 +23,7 @@ var raster = new ol.layer.TileLayer({
|
|||||||
|
|
||||||
var vector = new ol.layer.Vector({
|
var vector = new ol.layer.Vector({
|
||||||
source: new ol.source.Vector({
|
source: new ol.source.Vector({
|
||||||
projection: ol.projection.getFromCode('EPSG:4326')
|
projection: ol.projection.get('EPSG:4326')
|
||||||
}),
|
}),
|
||||||
style: new ol.style.Style({rules: [
|
style: new ol.style.Style({rules: [
|
||||||
new ol.style.Rule({
|
new ol.style.Rule({
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ describe('ol.layer.Vector', function() {
|
|||||||
|
|
||||||
var layer = new ol.layer.Vector({
|
var layer = new ol.layer.Vector({
|
||||||
source: new ol.source.Vector({
|
source: new ol.source.Vector({
|
||||||
projection: ol.projection.getFromCode('EPSG:4326')
|
projection: ol.projection.get('EPSG:4326')
|
||||||
}),
|
}),
|
||||||
style: new ol.style.Style({
|
style: new ol.style.Style({
|
||||||
rules: [
|
rules: [
|
||||||
|
|||||||
Reference in New Issue
Block a user