Questions tagged [html]

Hypertext Markup Language (HTML) is the principle markup language for displaying web pages and other information that can be displayed in a web browser

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

vue.js base wont load in while loading OpenLayers map

While using OpenLayers library in vue.js the map won't load. It isn't showing any error but only zoom in, zoom out and OSM atrribution is showing. <template> <div ref="map-root"&...
0
votes
0answers
18 views

Display PDF stored as BLOB using QGIS HTML Widget

This question answers how to display an image stored as a BLOB using the QGIS HTML Widget using this code: <script>document.write(expression.evaluate(" '<img src=' || '\"data:image/...
1
vote
0answers
47 views

Finding closest marker to user location Leaflet KNN

I am using Leaflet KNN and would like the closest station to a users location, from the web browser, to have a pop up saying it is their closest station. How can I find the nearest marker to the user ...
0
votes
1answer
35 views

Reading KML Simple Data to a popup in Open Layers

I have created a pop up for markers read from a KML file, however The KML file data is not being read and I assume due to it being in a <SimpleData> tag and in a <name> tag How would I be ...
1
vote
1answer
23 views

Resetting a marker Style after another marker has been clicked

Is there a way to reset a markers colour after clicking off of it. I am trying to make the markers colour change once clicked on and then update the infobox to the name of the train station and zoom ...
0
votes
1answer
37 views

Leaflet: Error when showing marker name within an info box/popup from GeoJSON data

I am trying to make it so when you click on the marker you get a popup with the name of the station within wales. Live working of my code: https://ces-web2.southwales.ac.uk/students/18018815/mitchtut/...
-1
votes
1answer
37 views

How to alter how a popup appears on OpenLayers Map

I've the following JavaScript code for a popup to display on my OpenLayers map // Create a popup overlay which will be used to display feature info var popup = new ol.Overlay.Popup(); map.addOverlay(...
1
vote
2answers
53 views

Clustering Markers from a KML file within openlayers

Is there a way to cluster markers within openlayers as there is within leaflet. I have many markers which display the various listed buildings within wales and I am wondering if I am able to cluster ...
0
votes
1answer
45 views

HTML table file in atlas

I have I field "MEMORIAL" in one of my vector layers with the source of a html file. The file is a table that I would like to appear in my atlas through HTML frame. How can I do that?
1
vote
1answer
42 views

Changing the colour of a GeoJSON polygon if user location is within it in Leaflet

I am wondering if there is a way to change the colour of a polygon got from a geojson file only if the users/browser location is within that polygon if so is there any example or working code that ...
1
vote
0answers
38 views

QTextTable Insert a Line in a Cell [closed]

I'm trying to put a line in the header of a QTextTable. I have tried four ways to do it: Option 1 - I have used the option to modify the background color of the cell. The problem is, I can't narrow ...
0
votes
1answer
57 views

Leaflet GeoJSON filters not working

I've been struggling to get map filters to work on my Leaflet map. I've got minimal JavaScript or Leaflet knowledge so where I have got to now has been a struggle. I'm essentially trying to do the ...
-1
votes
0answers
24 views

GeoJSON does not show on web map

I have managed to get a leaflet map working with GeoJSON files using the script below. When I FTP everything to my website (thefishingindex.com) the GeoJSON no longer shows on the map. Can anyone ...
1
vote
1answer
25 views

Leaflet Locate current location

I'm new to Leaflet and anything web related. I have got the following map working which asks for your location and changes the map view to that location. That is great but then the map continues to ...
1
vote
1answer
52 views

Getting Leaflet routing control result outside map in a div or table [closed]

All of the examples of Leaflet routing control display the result (iterenary) inside the map area. I want to display it outside in a div or table element. There is ItineraryBuilder in the API but no ...
2
votes
1answer
28 views

How to call/insert legend created by GetLegendGraphic request url of GeoServer on web-page?

I have followed the steps as mentioned on in the GeoServer Documentation for GetLegendGraphic Now as I click over it, it gives out an image of the legend on the next web-page and I have added this in ...
0
votes
0answers
65 views

Display map tip in QGIS does not show latest image while hovering

In QGIS 3.14 project I have a polygon layer with fixed names (zones) and I generate png figures (with pyqgis script) with the name of the zone to show them while hovering with map tip (Display). ...
0
votes
1answer
83 views

Show all data of the WMS GeoServer layer on single click at web page using OpenLayers 6 WMS GetFeatureInfo (Tile Layer)

I have a vector layer in my GeoServer, which I want to publish on the web page. When I open this layer manually from GeoServer, it shows the attribute table of the place/polygon, while clicking on ...
0
votes
0answers
16 views

How to Change and Display Marker Color and Marker Icon in GeoJSON Leaflet? [duplicate]

I have two files, .geojson and .html format, I want to use and display marker-color and marker-symbol (marker icon) in .geojson file. How to? I've displayed the basic blue popup and marker with the ...
4
votes
1answer
219 views

QGIS Labels with HTML formating

For complex labels, it would be useful to be able to use HTML formatting when different fields should be shown, on multiple lines and with different font sizes. Is this possible with QGIS? Or is there ...
0
votes
0answers
27 views

Labeling point layer using html

The following script works fine. It loads map layer and settlement points and labels those points upon selection. The settlement point file (*.geoJson) consists of: “var settlementpt = [{ "type&...
2
votes
1answer
62 views

Evaluating images in HTML widget using QGIS

I would like to have images displayed in my HTML widget. Unfortunately, the initial script generated by QGIS doesn't work. <tr> <td>Images</td> <td><script>document....
0
votes
1answer
31 views

PyQgis Show a HTML frame in canvas from a plugin button

I am using PyQGIS to request a JSON and showing some data of that file, formatted according with some conditions, in a window in QGIS using a button in a plugin. I have thought of using a HTML frame (...
0
votes
0answers
27 views

QGIS2WEb Leaflet file structure

After exporting from QGIS2Web into the different formats available, I am going for Leaflet. I want to change the order of information displayed in the popup, to fix the position of the label above the ...
1
vote
1answer
72 views

Displaying HTML widget in the map generated by QGIS2web plugin

I would like to render on my map the HTML widget prepared in the QGIS. The widget looks like below. Unfortunately, the issue is not simple, because in the popup generated by QGIS 2 web all the ...
1
vote
1answer
42 views

Canvas wider than containing div (OpenLayers)

Map canvas is wider than the containing map div. Causes problems when zoom to extent etc. Using Angular Material Flex-Layout / OpenLayers 6. // css .mapContainer { height: 100%; padding: 16px; } ...
0
votes
1answer
34 views

Showing polyline corrdinates in text input

This is my code: map.on("click", function(e) { var latlng = e.latlng; document.getElementById("lat1").value = latlng.lat; document.getElementById("lng1")....
0
votes
0answers
28 views

How to add a GeoJSON to a map with Leaflet

I need to add a GeoJSON of a shape to a map using Leaflet. My code: var map = L.map('map').setView([43.42851395329958, -3.668450798388781], 23); var geojsonFeature = { "type":"...
0
votes
0answers
110 views

How to Create dojox.form.CheckedMultiSelect dropdown?

I'm trying to create a drop down multi select checkbox using dojo JS and html but just given the drop down only. Code: <body> <div> <select data-dojo-type="dojox/form/...
0
votes
0answers
43 views

Using Python ArcGIS for Developers without using Jupyter Notebooks

I want to create an ArcGIS map in Python, add layers to it based on data taken from a .csv file, and then display the map in a webpage. Unfortunately, every Python tutorial I could find about the ...
1
vote
0answers
54 views

Adding a table to a web map made in Folium [closed]

I have made a nice Folium map however, the amount of data is small, but increasing. Right now it is grabbing a wildfire perimeter GeoJSON from NIFC and then getting points from my organization and ...
1
vote
0answers
27 views

Filtering pins from arrays with checkboxes and general cleanup

I am new JavaScript but I am looking for a way to use checkboxes to turn on and off sets of pins. The problem I am having is that I want to find the intersection of two arrays and pull the ...
0
votes
2answers
47 views

QGIS HTML in print composer, how to use “if” statement when building an expression?

I'm trying to include some images in a map layout to make an atlas. Currently I'm using the following HTML <img src=[%"FILEPATH_TO_IMAGE"%] height="400"/> However, there are ...
0
votes
0answers
29 views

Permanent override of webgis HTML file with Chrome: is it really possible?

Based upon a QGIS project I've created a simple webGIS using qgis2web plugin. I've made some tests to improve the webGIS appereance using Google Chrome developer tool, but when I refresh or reboot the ...
1
vote
1answer
145 views

Opening hyperlinks (URLs) from QGIS HTML widget

I recently got aware that you can now create a custom HTML widget by which you can replace the regular attribute form when you click the Identify features button in QGIS. As far as I can see it is a ...
0
votes
0answers
7 views

Amcharts4, map chart with bả

I am having a small problem, hope everyone will help me! I want to create a map with a bar chart like in the demo of Amcharts 4 there is a map example with a pie chart. I don't know how to do so.this ...
1
vote
0answers
28 views

Loading google maps API from php file [closed]

I've been trying to load some GeoJSON data into a map, using Google Maps API. When I save my file as .html the map shows up just fine, and it shows the data I want to see (a Linestring). I'm using ...
0
votes
0answers
27 views

static external HTML table renders smaller than expected in QGIS

A colleague gave me a QGIS layout including a static html frame. The HTML is exported from MS Word (don't ask). It contains of a table (with shading), and some lines of text outside of the table. It ...
1
vote
1answer
229 views

Button on click does not display pie charts

I am trying to display a pie chart on the click of a button using JavaScript/HTML. The pie chart displays fine without button click. But it doesn't work with the button. I have tried the following: &...
1
vote
1answer
432 views

Get MapBox Marker Coordinates Dynamically

I am new to MapBox and this may be a very simple solution, what I am trying to Achieve is to get the Coordinates of the marker which pops up when I search for Any Address/Location in the Search box. ...
0
votes
1answer
30 views

Displaying Feature Layer Field Values on webpage without Map using ArcGIS API for JavaScript

I am just learning JavaScript for this mini-project. I am looking to display the field values from a service feature layer on a web page using HTML and JS without loading a map and without any input ...
4
votes
1answer
91 views

Use HTML legend in QGIS

I am trying to set up HTML text in a legend of this kind: <div style = 'padding: 0; margin-left: -10px; color: # 7f7f7f '> O-1 <span style =' color: black '> - Kind of zone </span> &...
0
votes
1answer
77 views

GeoServer does not display/preview pgRouting Layer

I am developing a routing application using GeoServer, PostgreSQL, HTML and JavaScript. To display the routing layer on the HTML webpage, I followed the instructions from this workshop. GeoServer does ...
1
vote
1answer
218 views

Add halo to label in QGIS print composer with a specific font (using HTML)

I am using HTML code to buffer a label in QGIS Print Composer, as described in Question 84324. Sadly, this code also changes the font and I can´t change it back using the font size dialog. I´m not ...
1
vote
0answers
17 views

OBJ file not loading in GIScene.js

I am trying to load a OBJ file in GIScene.js. Unfortunately, the OBJ file is not getting visualized inside scene of GIScene.js, even though the scene of GIScene.js is getting visualized. There are no ...
1
vote
1answer
71 views

How to turn a 3d model made in Qgis2threejs into a shareable file

I have made a 3d model using Qgis2threejs, I can open the viewer in my browser and it works fine. I want to be able to provide someone with a link to the viewer, rather than have to send them an html ...
1
vote
1answer
520 views

Unable to load .glb (GLTF) in a scene of GIScene.js

I would like to load a .glb file, which is the binary format of GLTF in a scene of GIScene.js (https://giscience.github.io/GIScene.js/). <html> <head> <meta charset="UTF-8&...
1
vote
1answer
46 views

Carto: Can I use some “if/then/else” structure in popup custom HTML?

I believe I am asking a question similar to this question that was asked a few years ago about popup functionality in the old CartoDB. I just tried my best to replicate the solution to that question ...
1
vote
0answers
25 views

Select attribute from a layer

I'm trying to show an array of selected field values in HTML in the map composer. So far, this works but only for a specific value1 : [% array_to_string( array( attribute(get_feature('layer', '...
8
votes
2answers
432 views

Clickable label (HTML, Link) in PDF export (QGIS)

I need to export a (GEO)PDF - overview map with bounding boxes - with clickable links in every bounding box. I tried to simply export a PDF with html-links as text labels, but as you can see in the ...

1
2 3 4 5
8