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 votes
0 answers
29 views

Issue with Leaflet, div is blank [closed]

I am trying to display simple Leaflet map, but the map's div box is blank. I've tried a lot of different things but can't seem to figure it out. I'm hoping it's something simple I'm just missing. Here ...
1 vote
1 answer
33 views

Adding custom labels to Leaflet map

I'm trying to add custom labels in a leaflet map I built for my company. The legend code is based off of the tutorial for a choropleth map. So far it looks like this. The code I have for the legend ...
0 votes
1 answer
46 views

Trying to switch information from popup to sidebar

How can I move the information from a popup to a sidebar? On the cluster click I don't want a popup to show up, instead I want the information to be shown in a sidebar. With the polygon layer I could ...
  • 41
0 votes
1 answer
34 views

Map Disappearing on HTML page when Sizing is changed from pixels (px) to percentages (%)

I am trying to allow this map to be resized via screen size (Mobile, Tablet, Chrome (Half Screen, Full Screen, etc.) so I know I can't set a specific pixel amount. However, when I do set a percentage ...
0 votes
1 answer
56 views

Leaflet: fetch GeoJSON data while using markercluster plugin

I am trying to make a Leaflet map with the markercluster plugin and to fetch data from its related json file. The goal is to display various properties of my points elsewhere on the page when clicking ...
  • 11
1 vote
1 answer
64 views

Leaflet toggle marker clustering with overlay

I am using the Leaflet markercluster plug in, and now want to add a button to turn the clustering on/off. For that I wanted to use the leaflet button plug in, because I am already using it in my code. ...
  • 73
0 votes
1 answer
59 views

Leaflet toggle marker clustering

I am using the Leaflet markercluster plug in, and now want to add a button to turn the clustering on/off. For that I wanted to use the leaflet button plug in, because I am already using it in my code. ...
  • 73
1 vote
1 answer
25 views

Leaflet GeoCSV popups are not being displayed

I am using the Leaflet GeoCSV plug in to try and add markers with popups to my map. With the help of this post, I have been able to add the markers to the map, but I still want to add a popup to the ...
  • 73
1 vote
1 answer
797 views

Loading of local CSV file blocked by CORS policy in Leaflet

I am using the the Leaflet Geocsv plug in to display markers with popups from a csv file. When trying to aacess the file my Chrome Browser puts out this error message: Access to XMLHttpRequest at '...
  • 73
0 votes
1 answer
42 views

Leaflet GeoCSV Marker not visible on map

I am trying to load data for a Marker from a csv file and I am using the GeoCSV plugin for that. I downloaded the js file and added it to my code and also created a csv file in Excel which looks like ...
  • 73
1 vote
1 answer
55 views

Change border color of individual overlay items in Leaflet-panel layers plugin?

I am using the Leaflet panel layers plug in and want to change the color of the border of each item in the overlay. I can change all of them at once in the css file but cant change them individually. ...
  • 73
0 votes
1 answer
69 views

QGIS HTML Widget

I am looking at using the HTML widget in a drag n drop form to show a horizontal bar the length of which is based on a field. Not being a programmer of any sort I don't know the html syntax to use - a ...
  • 303
0 votes
0 answers
18 views

Cluster Layers are not visible - ArcGIS Print Widget

I am very new to GIS development. I was given the task to solve a small issue regarding a web mapping application's Print Widget. The widget works very well, but there is a problem. Take a look at the ...
  • 101
0 votes
1 answer
45 views

QGis2web - I want to add a button to the map which leads to another webpage

I am using QGIS2web plugin to create a nice page that shows some work-related spatial data. I want to make it nice as possible, and one idea is to have a few normal buttons, preferably directly under ...
2 votes
1 answer
72 views

Load WMS service into Mapbox map

I am able to add a WMS layer to a Leaflet map with very simple, readable code: var wmsURL = 'https://opengeo.ncep.noaa.gov/geoserver/klwx/klwx_bref_raw/ows?'; var wdgProductLayer = L.tileLayer.wms(...
0 votes
1 answer
170 views

Generating a bounding box for leaflet is inaccurate

I am trying to generate a bounding box for an image with Leaflet, based upon 3 criteria: Starting Latitude and Longitude (the center of the bounding box) My value for this is 38.9761, -77.4875 ...
0 votes
0 answers
90 views

How/where to add script to enable pan/zoom and information pop-ups to storymap

I haven’t work with HTML/JavaScript and Leaflet maps for at least two years and I am attempting to create a storymap (non-ESRI) using a template that I located on GitHub. It has most of the ...
0 votes
1 answer
201 views

Load Leaflet ImageOverlay with center point instead of corners

I have an image file that I am able to overlay perfectly fine onto my Leaflet map with this code: var initLat = 38.9761; var initLon = -77.4875; var imageUrl = '/weather/nexrad/radar.png'; var ...
2 votes
2 answers
860 views

Changing marker icon on click and then back to original state when click elsewhere in Leaflet?

I'm trying to get this function on my custom Leaflet map https://rodadagua.netlify.app/ I've found some very close examples and questions on here but being a complete novice unfortunately I have no ...
  • 25
2 votes
2 answers
532 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, { ...
0 votes
0 answers
16 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 ...
0 votes
0 answers
92 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 ...
2 votes
1 answer
65 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 ...
  • 22.6k
2 votes
0 answers
49 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'] . ...
0 votes
0 answers
55 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 ...
2 votes
1 answer
167 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&...
  • 944
1 vote
0 answers
137 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 ...
0 votes
0 answers
263 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 ...
1 vote
1 answer
298 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/...
  • 145
0 votes
0 answers
36 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 ...
  • 604
0 votes
1 answer
140 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 ...
  • 165
0 votes
1 answer
256 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 ...
1 vote
1 answer
116 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 ...
  • 165
0 votes
1 answer
260 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 ...
0 votes
0 answers
210 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 ...
2 votes
2 answers
55 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 ...
  • 21
0 votes
0 answers
85 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. ...
  • 21
1 vote
0 answers
56 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/...
  • 11
-1 votes
1 answer
2k 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 ...
1 vote
1 answer
277 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(...
  • 59
4 votes
1 answer
82 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 ...
0 votes
0 answers
164 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 ...
  • 109
5 votes
0 answers
705 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 ...
2 votes
1 answer
299 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 ...
2 votes
2 answers
170 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 ...
  • 41
1 vote
1 answer
49 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....
0 votes
0 answers
1k 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 ...
3 votes
1 answer
63 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 ...
  • 31
2 votes
0 answers
83 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 ...
1 vote
1 answer
146 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 ...

1
2 3 4 5
9