Skip to content

Commit

Permalink
fix preset annotation display in maps other than the DCS map
Browse files Browse the repository at this point in the history
  • Loading branch information
jboecker committed Mar 12, 2014
1 parent 0c05bfa commit a7d8e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/planner_ng-mapview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LAYER_ID_INACTIVE_ROUTES = 4;
LAYER_ID_ACTIVE_ROUTE_SEGMENTS = 5;
LAYER_ID_ACTIVE_WAYPOINTS = 6;

LAYER_ID_MAX = 5;
LAYER_ID_MAX = 6;

function formatLonLats(lonLat) {
// lonLat.transform(map.getProjection(), "EPSG:4326");
Expand Down Expand Up @@ -401,7 +401,7 @@ mp.MapView = function(map_type) {
}

function redrawPresetZoneAnnotation(obj) {
var center = new OpenLayers.Geometry.Point(obj.lon, obj.lat).transform(this.map.getProjection(), 'EPSG:900913');
var center = new OpenLayers.Geometry.Point(obj.lon, obj.lat).transform('EPSG:4326', 'EPSG:900913');
var feature = new OpenLayers.Feature.Vector();
var radius = obj.radius;
var poly = OpenLayers.Geometry.Polygon.createRegularPolygon(
Expand Down

0 comments on commit a7d8e9e

Please sign in to comment.