Questions tagged [javascript]

JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions.

From the GIS Wiki:


JavaScript is a scripting language used to enable programmatic access to objects within both the client application and other applications. It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites. JavaScript is a dialect of the ECMAScript standard and is characterized as a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to look like Java, but to be easier for non-programmers to work with.

JavaScript libraries are often used in web-based GIS solutions for the display of maps. Examples include ESRI's ArcGIS JavaScript API, leaflet.js, and OSGEO's OpenLayers.

3367 questions
4
votes
0 answers

How to convert WKT to SVG

I have some Well-known text (WKT) for representing geometry object such as Point, MultiPoint, LineString, Polygon, MultiPolygon etc. I have a multipolygon with in total 40000 Points. I have found this plugin which convert svg to…
Jetson John
  • 183
  • 7
4
votes
1 answer

How to change attributes of leaflet-sidebar-v2 based on 'id'?

I using leaflet-sidebar-v2 and I'm wondering how can I change the attribute of a tab based on their id: ctlSidebar = L.control.sidebar({container:'sidebar_div'}).addTo(mymap); ctlSidebar.addPanel({ id: 'info', tab: '
Matt_Geo
  • 1,050
  • 1
  • 10
  • 26
1
vote
1 answer

How to use checkboxes in GeoServer to turn on/off layers from WMS request

I am trying to use checkboxes for DEM, roads, streams in GeoServer. I want to turn off/on these layers using checkboxes in JavaScript. How can I do that?