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
5
votes
1answer
2k views

QGIS html annotation relative paths

I find the QGIS html annotation tool is very useful for quickly accessing a combination of key data attributes and photos. I am having trouble using relative paths for images. This doesn't work: <...
0
votes
1answer
260 views

Leaflet: Change points on map when a <div> tab on page is clicked

I am new to JavaScript. I have a GeoJSON with about 400- 600 points drawn on the map using the circle icon. I want to change what markers are shown on the map when a different year is clicked on the ...
0
votes
1answer
159 views

ArcGIS Portal homepage altered without HTML change

After changing the region in REST services the carousel of images has stopped rotating, the white banner at the top has disappeared and icons at the bottom have shifted. It seems like a page size ...
1
vote
0answers
101 views

QGIS Print Composer HTML standard

Which HTML standard supports the print composer of QGIS?
0
votes
2answers
782 views

Fusion table, map and displaying images?

I´ve set up a Google Maps displaying points from af fusion table. Is it possible to display the images related to the points, like when mouseover? (html hover?)
1
vote
1answer
193 views

Embed Static Carto Map in Google Sheet Cell

Carto is mapping software that provides me with a url to a dynamic map. I want to show a static version of the map (which updates daily) in a google sheets cell. Ideally there would be a way to ...
1
vote
1answer
713 views

Read label data in HTML frame

I have a map in QGIS displaying many languages being spoken in the displayed area. Each one of them has a designated marker with a HTML frame that shows up on hover. However, in this frame I would ...
1
vote
1answer
131 views

Using Carto API in HTML

I am trying to use CARTO API with my HTML to display a map, code below: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>...
1
vote
1answer
71 views

Legend in storymap show correct hexcode colours in editor but not in final display

I have used some html/css code from here: https://blogs.esri.com/esri/arcgis/2015/12/16/enhance-legend-story-map-journal/ to display legends in a journal style storymap. The hexcodes are correct and ...
1
vote
1answer
242 views

QGIS Map Tips Table, style every other row

I simply want to style every other row in a table I've generated using map tips with a different coloured background. I've got the correct generic CSS (I think) but nothing is changing. tr:nth-child (...
0
votes
2answers
468 views

Form submit to mapbox dataset via Javascript API

I have a form on a webpage that has a map the user can click on to populate the form's latitude and longitude fields. See it live. I have an empty dataset created in Mapbox Studio and have created an ...
1
vote
1answer
1k views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
6
votes
1answer
1k views

Basic HTML Code for Map Tips

I'm trying to get map tips to behave as shown below. Light grey background with very thin white border A box that adjusts to the content rather than a fixed width of say...300px A centred title ...
1
vote
0answers
78 views

How to use the points which come from the leaflet file layer plugin?

I am using leaflet file layer plugin.I have added a kml file which includes some points. I want to do sth by using these points. But I don't know if the plugin saves this data or not. How can I use ...
1
vote
1answer
6k views

Adding GeoJSON layer on leaflet?

i'm trying to load a geojson file on a leaflet map. here is the code : body : <!DOCTYPE html> <html> <head> <title>map</title> <link href="leaflet.css" type="...
0
votes
1answer
595 views

How to put image on top of OpenLayers 3 map by pixels

I need to put image which should be in middle top of openlayers 3 map. So, it should be defined with map canvas and pixels. Is that possible to do? This is my code: var arrow = new ol.layer.Image({ ...
4
votes
2answers
1k views

Access Stamen tiles flavors with OpenLayers

I'm using OpenLayers (v2.13.1) and would like to use Stamen Toner tiles as background. The example is simple to understand: http://maps.stamen.com/test/openlayers.html But I'd like to use the "lite" ...
1
vote
2answers
69 views

Accesing openlayers.map in index.html

I am developing an app using OpenTripPlanner. It creates an OpenLayers map in map.js. I want to access this map in index.html so I can set it's center. Kindly help me out.
3
votes
1answer
72 views

How to export online content in QGIS print composer into static formats for offline use (eg: PNG, PDF)

I have a print composer layout which, amongst other things, has a HTML frame with the following code: <script src="https://use.fontawesome.com/27c6690f63.js"></script> <ul class="fa-...
1
vote
1answer
694 views

OpenLayers and not well formed JSON

I am learning to use GeoExt and OpenLayers, and I want to reproduce one of the examples given at the GeoExt website. The script calls a GeoJSON file containing the position of Alp summits. I ...
1
vote
1answer
397 views

Styling the map tips pop up box with css - background-color not working

I'm trying to find some extensive documentation on styling the map tips box when hovering over features. I'm using CSS school to do basic styling but some (like background) don't seem to do anything ...
1
vote
1answer
765 views

Using HTML and CSS with QGIS Map Tips?

I'm trying to make the red text 'un-wrap' itself and use all the room available. My code is shown below. (I've tried playing with the margin as well but no luck)
1
vote
2answers
313 views

Leaflet's shapefile plugin only compatible with Firefox

I created an HTML page (currently locally) and used Leaflet to create a basic map to which I plan to add several shapefiles. To do this, I use the leaflet.shapefile extension (https://github.com/...
1
vote
1answer
2k views

How to set Google Maps pegman position programmatically?

I've this sample code that use Google Maps anb Google Street View .... <html> <head> <meta charset="utf-8"> <title>Set Pegman position programmatically</title>...
3
votes
1answer
1k views

How to pass GeoJSON array to datatable dynamically using Javascript

I want to pass one GeoJSON file to a dynamically created datatable using Javascript, I am unable to identify the column names in the file. I have tried this: <body> <table id="example" ...
5
votes
2answers
5k views

Generate HTML file with R using Leaflet

I try to display the France map on HTML with RStudio; I followed the tutorial to the World card in Creating an interactive map with Leaflet; Example works. I wanted to do the same just by displaying ...
0
votes
1answer
4k views

How to center a MapBox GL JS map at the point coordinates from a point edited with MapBox-GL-Draw plugin

I'm using MapBox GL JS and the mapbox-gl-draw plugin in a simple MapBox map .... here you're the code ... <html> <head> <meta charset='utf-8' /> <title></title> ...
2
votes
1answer
1k views

Loading simple ESRI HTML JavaScript in Internet Explorer 11?

Is there any particular reason this simple ESRI HTML JavaScript won't load in IE11? Chrome works fine. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content=...
3
votes
1answer
10k views

Why doesn't Leaflet fill the height of its parent container?

I have a ` with a specific height, inside of it I want to put my leaflet map. But the problem is that the map doesn't fill 100% of the height of its container. Why does my map not show up? HTML is as ...
1
vote
1answer
230 views

Sidebar blocks buttons

Added a sidebar to my Leaflet map that is toggled by a click on a feature and contains all feature properties. On local devices (Firefox/Chrome) everything works fine. My problems shows up only on ...
2
votes
1answer
89 views

Using file geodatabase with HTML in attribute column?

I am working with a file geodatabase (.gdb) where one of the attribute columns contains html code: My issue is that the attributes that I need are embedded in the html code. The screenshot below ...
1
vote
1answer
8k views

Extracting latitude/longitude from javascript and passing to html form

I have the following problem I use a google map inside an html form where the user can enter an address (autocomplete) and the marker goes to the place. The marker is draggable. What I want is to ...
1
vote
0answers
2k views

How to add a button (with image) on a map using Google Maps API

I need to put a button on a map built using Google Maps API v3. I've seen this sample https://developers.google.com/maps/documentation/javascript/examples/control-custom and that's good for me but ...
2
votes
1answer
391 views

Issues using html popups with QGIS 2.18

I was happily using html popups with QGIS 2.8.3 for various things including a showing a photo. However, I've updated to 2.18 to take advantage of other new functionalities, and now find that my html ...
1
vote
1answer
90 views

CartoDB toggle buttons not working with my data?

We are taking CartoDB data for this Canadian election map -- http://cdb.io/1TabLyz -- to create a version that adds toggle buttons to filter by political party. However, the buttons only work ...
0
votes
1answer
610 views

How to use image_url from dataset in Carto Builder HOVER pop-up window?

I am creating a map in Carto Builder with several points. I want to set the pop-up (hover) to display information from my dataset, including an image which is dictated by the corresponding image_url ...
2
votes
0answers
156 views

Choropleth map in html

I am making a choropleth map of population estimate by counties in United States. I am almost done but the problem is a few counties have population count in seven figures and they are the ones that ...
0
votes
0answers
268 views

Displaying .PNG file folders generated from MBUtil in HTML Doc

I recently followed this tutorial http://blog.davidelner.com/create-map-with-tilemill-and-leaflet/ that illustrated how to generate PNG tiles from Mbtile data sources. I was successful in creating the ...
1
vote
0answers
111 views

Using a URL instead of a form to add a shapefile to a layer in JavaScript

I have the following code that is used to add a shapefile to the map and it works perfectly. var genRequest = request({ url: portalUrl + '/sharing/rest/content/features/generate', ...
1
vote
1answer
476 views

What is leaflet-src.map?

I've download the Leaflet package and there is "leaflet-src.map" what is it exactly ? Do i need it to use correctly leaflet ?
2
votes
0answers
415 views

gdallocationinfo used in javascript with node-gdal?

I cannot figure it out if it's possible to get pixel information from my rasters using gdallocationinfo in javascript. I found node-gdal, but after reading its documentation I'm not sure if ...
0
votes
1answer
261 views

Javascript HTML web maps

I am very new to javascript and html. I am trying to display a web map, which works, but my issue is trying to figure out how to add a local geojson file to my html code. Here is what I have so far: &...
2
votes
1answer
473 views

How to create a bubble legend in Carto?

I have generated a 'bubble' map in Carto: Custom CSS: #layer { [capacity >= 70000] {marker-width: 90; } [capacity >= 60000][capacity < 70000] {marker-width: 80;} ...
2
votes
0answers
930 views

How to style markers so they dynamically offset if overlapping at different zoom levels? [closed]

I have created a map using Carto. The map has bespoke images as icon markers. I would like to style the map so that, if the icons overlap, they both render in an offset position so that the full ...
1
vote
0answers
322 views

ASP .NET and ArcGIS API for Javascript : FeatureTable won't show up

I"m a newbie with the ASP .NET, a have an issue. I want to show up a feature table in a viewer but I don"t get any results. I think I"m missing something? Here is example that I took from the ...
0
votes
1answer
430 views

Carto: How to set pop-up (hover) to display differently according to layers and zoom level

I'm working in Carto.com but I'm still new with this, therefore my question might be somewhat banal. I have tried to generate a map of US with two layers: one layer reffering to the state and the ...
0
votes
1answer
323 views

OpenLayers 4 and MapServer 7.0.4 HTML template

I would like to know if it is possible to render directly a HTML template retrieved from a MapServer WMS GetFeatureInfo call. The documentation explains that the API uses ol.Format.GML2 to read ...
0
votes
1answer
784 views

Getting the childcount in leaflet markercluster

I have created a custom icon for clustering my data, using leaflet markercluster. As default markercluster have the "childcount" in the icon. How can i put that number in my divicon? var markers = L....
0
votes
1answer
76 views

pgrouting with WMS [closed]

I able to successfully perform pgrouting using WMS but I am looking to show the cost (the length) on the web page (not only the line on the map but the length of the line) somewhere in an HTML div ...
1
vote
1answer
334 views

Simple popup for multiple WMS

I have multiple WMS in OpenLayers with a layer switcher and can be turned on and off. Now I have an image of each WMS, what I want is to show image of each WMS on click OF that corresponding WMS. ...