I have an angular 7 Project that includes openlayers.
npm install ol
So I am using openayers components like this:
import { Component, OnInit } from '@angular/core';
import Map from 'ol/Map';
import View from 'ol/View';
And I am creting a Map object: var map = new Map(opitons);
But I want to use curly braces for import modules like this:
import { Map, View } from 'openlayers';
But this throws an exception like this:
Module not found: Error: Can't resolve 'openlayers'