Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1411 from geoadmin/gjn_fix_coordinatemarker
Browse files Browse the repository at this point in the history
Adding 2 quick fixes from master
  • Loading branch information
gjn committed May 9, 2014
2 parents 4178c12 + 41a91cc commit b14c6d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/search/SearchDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
moveTo(map, 8, position);
var center = [position[0], position[1]];
var extent = [center, center];
gaMarkerOverlay.add(map, extent);
gaMarkerOverlay.add(map, center, extent, true);
}
return !position;
},
Expand Down Expand Up @@ -639,6 +639,7 @@
var searchParam = gaPermalink.getParams().swisssearch;
if (angular.isDefined(searchParam) &&
searchParam.length > 0) {
gaPermalink.deleteParam('swisssearch');
var unregister = scope.$on('gaLayersChange', function() {
// At this point layers are not added to the map yet
var unregisterLayers = scope.$watchCollection('layers',
Expand Down

0 comments on commit b14c6d4

Please sign in to comment.