kepler.gl icon indicating copy to clipboard operation
kepler.gl copied to clipboard

[Feat] WMS Layers

Open felixerdy opened this issue 8 months ago • 3 comments

This PR introduces the ability to add OGC WMS layers to kepler.gl. Users can now input a WMS URL, and they have the option to

  • change the layer
  • adjust the opacity
  • toggle wms TRANSPARENT tag
Screenshot 2025-05-09 at 12 19 02 Screenshot 2025-05-09 at 12 03 25

Getting started enableRasterTileLayer: true in application-config.ts

As this is my first time working in the Kepler.gl codebase, I welcome any feedback or suggestions for improvements. Please let me know if this feature aligns with the current roadmap and what additional steps or features may be needed for this to be fully integrated.

felixerdy avatar May 09 '25 10:05 felixerdy

You probably want to use the deck.gl WMSLayer?

There are a lot of corner cases with different WMS versions etc

ibgreen avatar May 09 '25 11:05 ibgreen

I am now using the deck.gl WMSLayer (somehow the types for @deck.gl/geo-layers are outdated, that's why I'm using @ts-expect-error)

I agree there can some edge cases with different WMS versions etc. Maybe we can integrate this as an experimental feature trough the applicationConfig

felixerdy avatar May 12 '25 07:05 felixerdy

@felixerdy I'm going to review the PR a bit later. For now, we'll hide the layer behind an app config flag until version 3.2. After it lands, I'll try updating the layer to use the WMS layer from deck.gl, since we're aiming to stick with their implementations.

igorDykhta avatar May 29 '25 16:05 igorDykhta