noam aghai
noam aghai

Reputation: 1446

leaflet map rotation (typescript)

I using leaflet.js map at my angular 2 (typescript) project.

there is any news about the whole map rotation ?

I already tried the CSS "Hack".

there is a leaflet or some plugin else way ?

Thanks.

Upvotes: 2

Views: 3197

Answers (3)

Tony  Estakado
Tony Estakado

Reputation: 11

https://github.com/fnicollet/Leaflet/tree/rotate-master unnoficial leaflet branch supported rotation.

Upvotes: 0

noam aghai
noam aghai

Reputation: 1446

Finally i find a solution !

I left leaflet just because this map rotation :(

because of that I use openlayers map. you can install in very simple way by this steps

npm install openlayers

Then install types openlayers to your dev env:

npm install --save-dev @types/openlayers

Then import to the file by this line:

import * as ol from 'openlayers';

finally you can use openlayers map like this:

new ol.Map();

(you can use code from openlayers docs).

Upvotes: 1

Jieter
Jieter

Reputation: 4229

There is some discussion and experimental branches referred in this Leaflet issue, but currently it is not supported by Leaflet.

Upvotes: 1

Related Questions