Naimikan / angular-mapboxgl-directive

AngularJS directive for Mapbox GL
https://naimikan.github.io/angular-mapboxgl-directive/
MIT License
49 stars 21 forks source link

Navigation control does not work #38

Closed BohdanKorinnyi closed 6 years ago

BohdanKorinnyi commented 6 years ago

Hi, I'm trying to add navigation control to my map but it doesn't appear. I use code from example. Also I tried to run other examples from control section and it also didn't work. What is wrong? Why does it not work? Example in jsfiddle image Thanks!

Naimikan commented 6 years ago

Hi @BohdanKorinnyi!

I think that the problem is tag. I forgot to put rel="stylesheet" in tags.

Tell me if it worked!

BohdanKorinnyi commented 6 years ago

Hi @Naimikan! I changed div to <div mapboxgl gl-controls="glControls" rel="stylesheet"></div>. It still doesn't work.

Naimikan commented 6 years ago

No @BohdanKorinnyi!

You have to put rel="stylesheet" in tags:

<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-mapboxgl-directive/0.39.0/angular-mapboxgl-directive.min.css">
BohdanKorinnyi commented 6 years ago

It works! Thanks a lot @Naimikan! :raised_hands: