Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
361 views

OpenLayers - Add PNG image static from local disk? [closed]

I have some layers in GeoServer, where I used the OpenLayers technology to act as a viewer for these. The code is the following: <!doctype html> <html lang="es"> <head> &...
MrShaggy87's user avatar
0 votes
0 answers
420 views

Show map tiles made in MapTiler in OpenLayers?

I converted GeoTIFF to png-tiles using MapTiler. Here is the folder structure: Now I'm trying to add this folder with png-tiles to OpenLayers as XYZ source: var layer = new ol.layer.Tile({ ...
user13892757's user avatar
0 votes
0 answers
230 views

Only one image is showing up on OpenLayers map

I can only get one of the following DEM_image PNGs to show up on my map. Its always the first one "DSS.layer.DEM.image0" that shows up, the rest do not render. I can see in the console ...
Zach Hassler's user avatar
0 votes
1 answer
2k views

Export a map and a legend as a PNG with OpenLayers 6

I would like to export a map with a legend in the same PNG using OpenLayers 6. I searched in the OpenLayers documentation but I got just how to export a map (without a legend). How can I do this?
work's user avatar
  • 73
0 votes
1 answer
977 views

Use PNG external graphic for vector layer with OpenLayers 5.3

I am currently working on a webmapping project using Mviewer device, linked to OpenLayers 5.3. I am trying to create a new vector layer to locate points, with js. So far, I managed to create a layer ...
fefe78's user avatar
  • 21
1 vote
1 answer
2k views

Filling polygon with png pattern in OpenLayers?

I want to fill a set of polygons with png pattern. Here is an extract of my code : var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var pattern; var imageObj ...
Youssef AIT ALI's user avatar
2 votes
1 answer
2k views

OpenLayers3: How to show a KML layer with the export to png Button

So... I have this script: <script> //Script1: Script de criação do mapa. var map = new ol.Map({ layers: [ new ol.layer.Tile({ ...
Marcos Rodrigo Jung Alves's user avatar