some wms or wfs sources require user and password authentication. for example https://apps.sogelink.fr/maplink/public/wfs?request=GetCapabilities need Basic authentication. How can I inject this authentication?
标签:
openlayers
相关问题
- ImageMagick cropping large image into xyz tiles
- Apply hash pattern to polygon in openlayers
- How to fix EPSG:4326 with WMTS incorrect map overl
- Draw great circle line on the map directly in Open
- Creating Heatmap in OpenLayers with Vector Source
相关文章
- How to use both Ext 3 and Ext 4 togeheter with Geo
- OSM: convert ties from projected coordinates in sp
- Openlayers export to KML and keep my map styles
- How to use GeoDjango Pointfield in Form?
- Updating to OpenLayers 3 [closed]
- Openlayers inside jquery ui tabs
- Multiple Leaflet maps on same page with same optio
- Openlayers write and save a KML based on your map
You can provide your own
imageLoadFunction
to an ImageWMS source. The default one just takes the URL and inserts it as the src of the img tag:That question was already asked on the OpenLayers GitHub, here is an example from there:
The documentation of OpenLayers is really good. Just find an example that uses features you want and then follow the links to the API docs.The ol.source.Vector doc even includes an example of a loading function for WFS, where you could manipulate the request: