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
1 vote
1 answer
43 views

Change popup content with JavaScript

How can I dynamically change the HTML content of a Leaflet popup using JavaScript? I have text in the popup that I want to change when it's clicked: map_layer = L.geoJSON(countries, { ...
user avatar
-3 votes
0 answers
15 views

how to center a div in html, please help me, i am very much very much beginner [closed]

Div Center Heading Big Heading Very Big Heading Very Very Big Heading small Head XXS Head
user avatar
0 votes
0 answers
5 views

Carto Pop-up info window header color using html

Using Carto i am attempting to edit the header color of the info window specific for each variable. Currently i am portraying top and bottom 10% of deprivation by red and blue. I would like the header ...
user avatar
0 votes
0 answers
21 views

polygon segments length as labels on folium maps

I have done this on QGIS, as shown in the screenshot, but I need the same on folium python, I have used this answer getting length of segments of polygon to generate the same but missing the part of ...
user avatar
2 votes
1 answer
33 views

Embed Font Awesome icons in QGIS layout HTML Frame

I'd like to embed some Font Awesome social media icons into a QGIS 3.16 layout, using the "HTML Frame" element ("Add HTML" tool). How would I go about either: Embedding web ...
user avatar
  • 22.4k
2 votes
0 answers
28 views

How can I display WKT MultiLineString on OpenLayers in DJANGO project [closed]

I want to display WKT in text on HTML. I wanted it on JS variable but i couldn't do that. Python code def showResult(request): start = request.GET['start'] end = request.GET['end'] . ...
user avatar
0 votes
0 answers
37 views

How to display WKT MultiLineString on OpenLayers in DJANGO project

Actually i tried something but just i display WKT in text on HTML. I wanted it on JS variable but i couldn't do that. Python code def showResult(request): start = request.GET['start'] end ...
user avatar
2 votes
1 answer
49 views

QGIS: how to convert html formatted text in attribute table?

In my attribute table there's a lot of html formatted text. Is there a quick way to convert that html to 'normal' UTF-8 text other than using replace() for every html special character? replace('<p&...
user avatar
  • 922
1 vote
0 answers
35 views

Convert KML to shapefile using GDAL/OGR2OGR to include all attributes from description field

I'm currently trying to develop a workflow for converting KML to shapefile using OGR2OGR command within GDAL. The conversion seems to work fine for some KMLs that have basic information included ...
user avatar
0 votes
0 answers
73 views

How to display GeoJSON on Cesium

I've a Django app that lets you run a spatial query and displays the result in the form of a GeoJSON polygon or geometry on a Leaflet map. Here's how I did it on Leaflet: I store the geometry in an ...
user avatar
1 vote
1 answer
106 views

Mapbox - checkbox filters work in modal but not div

In my first map (https://codepen.io/flyinginsect2/pen/oNoQvNQ), the checkbox filters in the modal popup seem to work just fine. However, when I move the filters to a new div (https://codepen.io/...
user avatar
  • 145
0 votes
0 answers
26 views

Adding webpage to ArcGIS Portal

I have developed a webpage (HTML, JavaScript, CSS). The page is basically a map viewer, and a few buttons. Is it possible to add the webpage files to my Portal so users can access the map and buttons ...
user avatar
  • 592
0 votes
1 answer
80 views

Dynamically adding lat, lon filter to WFS request in Leaflet

I want to run my wfs_url for all the points/cities returned by:-https://demo.pygeoapi.io/master/collections/ogr_gpkg_poi/items?f=json request? such that my result will show the no of earthquake data ...
user avatar
  • 69
0 votes
1 answer
70 views

Getting current user location automatically every "x" seconds and calculating the difference in km

I'm trying to get the users' location every "x" seconds then calculating the difference in kilometers. Here is the code that didn't work: <html> <head> <meta ...
user avatar
1 vote
1 answer
46 views

Adding popup with attribute characteristics to features in Leaflet?

I need to show popup for GEOJSON data with its attributes. However, I don't have any idea on showing popup for GEOJSON data added through url of wfs. The geojson data is earthquake data added through ...
user avatar
  • 69
0 votes
1 answer
103 views

Make text color in innerHTML change depending on value in GeoJSON

When I hover over different counties on my map, a div updates whether or not the county voted republican or democratic in the 2020 election (among other things). It will either say it voted republican ...
user avatar
0 votes
0 answers
94 views

How to make div update with zoom level?

I have a div that updates with mousehover. For example, when you hover over GA it displays the data for GA, when you hover over NC, it displays the data for NC, etc. I want to have the same div, but ...
user avatar
1 vote
0 answers
33 views

Displaying attribute name in .html file by QGIS2Web

In QGIS file I have many attributes in my shapefile: Then I export file to .html by QGIS2Web plugin: But when I click in .html file on my object(shapefile), there are no names of attributes, just ...
user avatar
  • 11
0 votes
0 answers
70 views

OpenLayers GetFeatureInfo popups and HTML output format ftl

In OpenLayers I am trying to use my GetFeatureInfoUrl with a proxy to display information and a picture when you click on the layer polygon. I do not quite understand how to get started with ftl. ...
user avatar
  • 21
1 vote
0 answers
42 views

Remove bounding box from metadata view in Geonetwork

I want to remove the spatial extent (bounding box) section from all the metadata views because all I can see with my uploaded data is this: I tried to edit the 'catalog/views/default/templates/...
user avatar
  • 11
-1 votes
1 answer
1k views

How to write to a text file the output of for loop, which collects data from multiple URL similar pages? [closed]

I collect data from multiple URL similar pages using a loop for every element. (it works) printing the results. (it works) Instead of printing, I want to write the results inside one text file. every ...
user avatar
1 vote
1 answer
100 views

De-highlight highlighted features with button click in OpenLayers?

.html button type="button" value="Click" id="chiru">chiru</button .ts this.map.on('singleclick', event => { const feature = this.map.forEachFeatureAtPixel(...
user avatar
  • 57
4 votes
1 answer
62 views

Сhanging pop-up font size in qgis2web

I have a lot of info in QGIS2WEB pop-ups and would like to make the font size smaller to make the text easier to read. I have checked all exported files, and the only instance referencing the pop-ups ...
user avatar
0 votes
0 answers
111 views

Interactive equidistant map for HAM radio application

Our local HAM Radio Club is currently using a Google Map for our rotor direction visualization software, here is an example of our app: https://linkpaste.org/visu/ Now - for obvious reasons - I want ...
user avatar
  • 109
0 votes
0 answers
20 views

Combining interactive features from two different Mapbox GL JS scripts

I'm interested in making a map that shows values of features on a map when the mouse hovers over a feature, and also making different GIS layers toggle on and off. Luckily, there exists a Mapbox ...
user avatar
  • 491
5 votes
0 answers
488 views

Controlling the visibility of a FeatureGroup in Folium with an HTML checkbox

I'm working on a project in Django where I want to show layers on a map by checking or unchecking boxes which I created using bootstrap. I am aware it is possible to use LayerControl to get these ...
user avatar
2 votes
1 answer
224 views

OpenLayers WMTS function no longer working - No error messages

WMTS layers have been rendering in OpenLayers 6.5.1 flawlessly in from my code for some time now, but it has recently stopped working. I can't actually think of anything that I've recently changed in ...
user avatar
0 votes
0 answers
62 views

Integrating QGIS2web HTML / JS into Jekyll page

I am using QGIS2web to generate zoomable maps for web deployment. In a student project, we would like to integrate the QGIS2web map into a Jekyll website fed from a GITLAB repo. I can integrate the ...
user avatar
2 votes
2 answers
118 views

QGIS - Need a different KML balloon style when exported

I am new to QGIS. When I export my file to KML and open it in Google Earth, the balloon for each shapefile shows up by default in a basic white table. Installing the MMGIS plugin changes the export ...
user avatar
  • 41
1 vote
1 answer
43 views

Why does GRASS GIS output HTML files for r.stats when run from QGIS processing toolbox?

Running r.stats in GRASS GIS from QGIS has no parameter for output, only one named html. Does anyone know why this is? It doesn't match the documentation https://grass.osgeo.org/grass78/manuals/r....
user avatar
0 votes
0 answers
984 views

Icons that do not resize in Folium

My understanding is that Folium still does not have capability to create labels for polygons. Tooltips do not work for my use-case since I can have hundreds of small polygons and I don't want users to ...
user avatar
3 votes
1 answer
52 views

Publishing map created by qgis2web on CMS

I have a problem with the publication of a qgis2web export on a CMS (another than Wordpress). I have an error when I put .js/.ttf/.woff2 files: these files are not accepted by the CMS. Someone has ...
user avatar
  • 31
2 votes
0 answers
77 views

Refreshing image in attribute form based on classifier using QGIS

We have two tables: road_signs (road sign points). lut_road_signs (classifier of road signs), this table has a column sing_img (blob) in which the image of road signs is written in png format. How ...
user avatar
1 vote
1 answer
100 views

QGIS Reports: Create HTML table by iteration through every field in attribute table of layer

I have a QGIS project and I want to generate a report out of this. I am using the report-tool (https://docs.qgis.org/3.16/en/docs/user_manual/print_composer/create_reports.html) as it suits me better ...
user avatar
2 votes
0 answers
45 views

Image size limitation in QGIS print layout using HTML code

I'm trying to make an atlas with QGIS, with one image per page. My goal is more complex so I have to use HTML widget in order to display the images. The below code works, but only if the picture is ...
user avatar
1 vote
0 answers
45 views

Submit a form in Folium HTML Popup

In my flask application I have a folium map displayed inside an iframe. I defined a folium html popup with a form. How can I route the form? Here is my popup html code: """<!DOCTYPE ...
user avatar
0 votes
0 answers
68 views

Getting a GeoServer created style to Leaflet markers via PHP

How can I use a point/marker style created on GeoServer within my Leaflet map when I am drawing data from the server using PHP. I am currently PHP to draw geodata from my GIS server, however I would ...
user avatar
  • 101
4 votes
2 answers
121 views

Copying the standard HTML design of function descriptions in the Function editor

I am creating my own function in the function editor and want to copy the HTML design of the standard function description, but I can't find it anywhere. Where can I find it? UPDATE: I found a ...
user avatar
  • 5,592
1 vote
0 answers
291 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 ...
user avatar
  • 101
0 votes
1 answer
151 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 ...
user avatar
  • 101
1 vote
1 answer
275 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 ...
user avatar
  • 101
0 votes
1 answer
101 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/...
user avatar
  • 101
-1 votes
1 answer
315 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(...
user avatar
1 vote
2 answers
208 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 ...
user avatar
  • 101
1 vote
1 answer
80 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?
user avatar
  • 1,054
1 vote
1 answer
405 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 ...
user avatar
  • 101
1 vote
0 answers
112 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 ...
user avatar
  • 622
0 votes
1 answer
187 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 ...
user avatar
1 vote
1 answer
415 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 ...
user avatar
1 vote
1 answer
628 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 ...
user avatar
  • 8,119

1
2 3 4 5
9