I have a Javascript code which use openLayer3. I need to implement this code in a angular2 project, in Typescript.
Someone knows how use openlayer with angular2 / Typescript please ?
Thanks a lot,
John
I have a Javascript code which use openLayer3. I need to implement this code in a angular2 project, in Typescript. Someone knows how use openlayer with angular2 / Typescript please ? Thanks a lot, John |
|||
|
As for the typings you may be interested in DefinitelyTyped project - you can find there openlayers/openlayers.d.ts - you probably need to understand the As for the AngularJS 2 considering it's still in beta the experience tells you're mostly on your own. Still googling can point you to i.e. https://gist.github.com/borchsenius/5a1ec0b48b283ba65021. Usual approach is first to understand the AngularJS 2 way according to already existing examples. You should soon notice lot of common sense in the way different integrations are looking. Then try to adapt what you want in appropriate manner. Then there is the great part to give further and share the knowledge :) Also knowing existing AngularJS 1.x solutions like this article may help. |
|||||||||
|