Giter Club home page Giter Club logo

Comments (6)

Naimikan avatar Naimikan commented on May 31, 2024 1

Hi @LennyZ71!

I will post an issue en mapbox-gl repository. You can follow here.

from angular-mapboxgl-directive.

Naimikan avatar Naimikan commented on May 31, 2024

Hi @LennyZ71!

I tried to add the radar WMS layer:

$scope.glSources = [
   {
      id: 'wmsSource',
      type: 'raster',
      tiles: [
         'https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WmsServer?service=WMS&request=GetMap&version=1.3.0&layers=1&styles=&format=image/png&transparent=true&height=481&width=1024&srs=EPSG:3857&bbox={bbox-epsg-3857}'
      ],
      tileSize: 256
   }
];

$scope.glLayers = [
   {
      id: 'wmsLayer',
      source: 'wmsSource',
      type: 'raster',
      paint: {}
   }
];

But I got an error: Parameter 'srs(crs)' has wrong value.

I don't know what is it, but it seems that parameter srs needs other value.

from angular-mapboxgl-directive.

LennyZ71 avatar LennyZ71 commented on May 31, 2024

Sorry here is updated URL. Parameter srs is supposed to be crs It seems to load link for me like that also, but it loads a black layer with no image and covers map, but not other layer I add.

'https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WmsServer?service=WMS&request=GetMap&version=1.3.0&layers=1&styles=&format=image%2Fpng&transparent=true&height=481&width=1024&crs=EPSG%3A3857&bbox={bbox-epsg-3857}'

or with pre-defined bbox

https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WmsServer?service=WMS&request=GetMap&version=1.3.0&layers=1&styles=&format=image%2Fpng&transparent=true&height=481&width=1024&crs=EPSG%3A3857&bbox=-14180000,2405000,-7391000,6490000

from angular-mapboxgl-directive.

Naimikan avatar Naimikan commented on May 31, 2024

Hi @LennyZ71!

Did you get it to work? I don't know what is the problem. I advise you to open an issue in the repository mapbox-gl.

Sorry!

from angular-mapboxgl-directive.

Naimikan avatar Naimikan commented on May 31, 2024

Hi @LennyZ71!

It worked! https://codepen.io/Naimikan/pen/JNYyvd

from angular-mapboxgl-directive.

LennyZ71 avatar LennyZ71 commented on May 31, 2024

Very nice, I got it working with the glImage directive, but I couldn't get it to update on an interval, and the quality when zooming in didn't seem to render like the WMS does. I will be swapping it over. Thanks for the heads up!

from angular-mapboxgl-directive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.