Skip to content

Commit

Permalink
fix: Don't access private properties of ol.View
Browse files Browse the repository at this point in the history
backport of d39d629
  • Loading branch information
jmacura committed Jan 5, 2022
1 parent 676abfb commit a307da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/hslayers/src/components/map/map.service.ts
Expand Up @@ -434,7 +434,7 @@ export class HsMapService {
* @param template
*/
cloneView(template: View): View {
const view = new View((template as any).options_);
const view = new View(template.getProperties());
return view;
}

Expand Down

0 comments on commit a307da4

Please sign in to comment.