Rename ol.projection to ol.proj

This commit is contained in:
Tom Payne
2013-05-30 18:55:58 +02:00
parent 795ea69982
commit 46553c719c
50 changed files with 345 additions and 370 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.coordinate');
goog.require('ol.layer.TileLayer');
goog.require('ol.projection');
goog.require('ol.proj');
goog.require('ol.source.MapQuestOpenAerial');
@@ -25,7 +25,7 @@ var map = new ol.Map({
// Vienna label
var vienna = new ol.Overlay({
map: map,
position: ol.projection.transform(
position: ol.proj.transform(
[16.3725, 48.208889], 'EPSG:4326', 'EPSG:3857'),
element: document.getElementById('vienna')
});
@@ -38,7 +38,7 @@ var popup = new ol.Overlay({
map.on('click', function(evt) {
var element = popup.getElement();
var coordinate = evt.getCoordinate();
var hdms = ol.coordinate.toStringHDMS(ol.projection.transform(
var hdms = ol.coordinate.toStringHDMS(ol.proj.transform(
coordinate, 'EPSG:3857', 'EPSG:4326'));
$(element).popover('destroy');