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

learn more… | top users | synonyms (1)

0
votes
1answer
51 views

openlayers3 Draw interaction vertexadd event

I am trying to implement an undo/redo functionality during drawing a fetaure using the draw interaction. For the modify interaction I was able to to do it using the 'modifyend' event. like so: ...
10
votes
5answers
3k views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
0
votes
0answers
19 views

Loading tiles of EXTENT in OpenLayers locally (localStorage)?

I have created a simple openlayers 3 map HERE , the map initialization code looks like so: var styles = [ 'Road', 'Aerial', 'AerialWithLabels', 'collinsBart', 'ordnanceSurvey']; ...
0
votes
0answers
66 views

Plotting points with ArcGIS API for JavaScript

I have set some latitude & longitude values that I would like to show on my heated map using "Esri/geometry/Multipoint". I have specified some json data in a variable called mpJson that I would ...
2
votes
1answer
47 views

OpenLayers 3 with geoJSON - struggling with projections

I am trying to implement support for multiple projections in qgis2web. I believe that the correct approach would be to export the QGIS layers to EPSG:4326 geoJSON. I've implemented that. However, I ...
0
votes
1answer
60 views

OL3 reproject geoJSON in EPSG:4326

qgis2web is a plugin for QGIS which creates webmaps. This question is about its OpenLayers 3 export. It exports QGIS layers to geoJSON to pull into the OL3 map. It writes them in EPSG:4326, as I ...
0
votes
1answer
36 views

scripting getfeatureinfo for multiple wms layers

I am not really a programmer and I'm trying to create a webservice. I copy and pasted some script examples which made my script what it is now. I have multiple wms layers, but want to show different ...
4
votes
2answers
2k views

JavaScript library to read data from a WFS server?

Is there a JavaScript library available to read data from a WFS server?
3
votes
0answers
35 views

Trilateration with error account or lack of precision

I am developing a node.js/javascript application where I would have dozens of beacons in a row (positions known), which gives me their distances to specific object (3 or 4 distances per object). The ...
1
vote
2answers
45 views

Converting X and Y to lat/long using UTM WGS-1984 48N projection system

Hi I am using street directory api and it is using the UTM WGS-1984 48N projection system. I only need to convert static values! I am mostly using JavaScript but at the moment I'm alright with any ...
0
votes
0answers
54 views

Google maps not being displayed inside my widget

I am trying to display my data in google maps. Like if i drag and drop my data, a widget should opens and it should display the data in the google maps inside the widget.Now, widget is opening, but ...
0
votes
1answer
67 views

Add an event listener on a Marker in Leaflet

I am using leaflet in order to render a map. I created a map with markers and i dont know how to implement the Event Listener 'onClick' on each Marker. My code var stops = JSON.parse(json); var map ...
0
votes
0answers
27 views

Pivoting around Geojson variable symbology in Leaflet Map

I currently have geoJson loaded in to a leaflet map where I want to change the variable symbolised. The symbology rules can all be the same for each variable visualised. I need to find a way of ...
0
votes
1answer
30 views

Conflicting layer styles for geojson in Leaflet map

Assigning a style to a geojson layer but it is visualising with the aforementioned style as well as the default blue style assigned to geojsons. Can't work out what is causing <!DOCTYPE ...
0
votes
1answer
35 views

Leaflet geoCSV Popup Customisation

I am currently using the leaflet geoCSV plugin to bring through CSV data into the map frame. I am struggling to be able to customise the popup to only show certain attributes of the CSV and different ...
0
votes
0answers
145 views

How to highlight a feature while being processed in ol3

I have written the following code where I check the newly added line to a vector layer for the possible intersection with other lines in that layer. //vector2 layer is defined and added to the map ...
0
votes
3answers
74 views

Pass GeoJSON from .NET to Javascript

My .NET/OpenLayers/GeoServer/PostGres-PostGIS application allows users to create custom queries to get data from my PostGIS tables. The queries are called in .NET (not javascript) using a web method ...
1
vote
1answer
57 views

Removing measure label from OpenLayers 3 measure?

I have implemented the measure example available on the OpenLayers 3 site (http://openlayers.org/en/v3.11.2/examples/measure.html) and I am currently trying to include a clear button that will clear ...
3
votes
1answer
40 views

Leaflet geojson styling leaves gaps between polygon

I'm styling a geojson polygon composed of multiple closely placed vertical segements which doesnot have a gap in between (i've checked the topology). I want to display just the fill and without ...
2
votes
2answers
268 views

Color Blend Mode for OpenLayers Vector Feature

Currently I'm developing a WebGIS app using OpenLayers 2.13.1, GeoServer, and PostGIS. The app has buffer analysis feature which is working fine like the picture below. What I'm looking for is: is ...
2
votes
1answer
46 views

Ol3 Boundless - layer selector placement

I recently started playing around with ol3 + boundless. I created the edit application using > suite-sdk create myApp ol3edit. I am trying to move the layer view/selector from the map to a ...
2
votes
1answer
643 views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
0
votes
1answer
74 views

CartoDB layer not showing up on over mapbox layer but legend is

Currently, the legend is only displaying but not the layer. NOTE: I am trying to run the web map on a bootstrap modal, hence you will see: $('#webmap-modal').on('shown.bs.modal', function() in the ...
1
vote
1answer
78 views

Mapbox Directions Plugin - Get Route GeoJson

Goal: find the GeoJSON points in a web map that are closest to a directions route using turf.js. I am using the Mapbox Directions plugin. I am following this example. How do I work with the route ...
2
votes
1answer
47 views

Is it possible to show Leaflet Marker Cluster with JSON API?

I have a problem with displaying Leaflet Marker Cluster working with Leaflet-layerJSON. There are markers, but I cannot show the clusters. This works with GeoJSON, but now I have different data ...
0
votes
0answers
78 views

JSON String From VB.NET to Javascript over 100,000 characters

I have a string of properly formatted JSON from a VB.NET function that I am trying to pass to JavaScript where I can convert it into an OpenLayers vector layer. The string can be variable length, ...
0
votes
1answer
16 views

Set Visibility Openlayers

If the name of my layer in openlayers is "olayer". And if i want to set its visibility to true. Then the simple code is olayer.setVisibility(true); But if i want to set the visibility by ...
0
votes
1answer
86 views

Openlayers 3 custom Polygon feature

I'm trying to create a custom Polygon style for my layer style. I receive some information about position, orientation and age for a number of objects and I want to represent those as zoom ...
2
votes
0answers
267 views

OpenLayers 3 xyz layer problem

I'm going to host a customized xyz tiled layer so I tested on my local machine to add that layer to OpenLayers Map control. I've already rendered some tiles using generate_tiles.py and Mapnik. I've ...
1
vote
1answer
17 views

Grab set of datapoints for each step for CartoDB torque timeSlider (through JavaScript)

So I have a regular CartoDB map that has a torque layer with a timeSlider. I know how to access the date for the slider object, but is there a way to access the datapoints for each step as it goes ...
0
votes
1answer
28 views

How to load tiles of a specific area in openlayers-3 using a bounding box [duplicate]

I have built a simple open-layers -3 map ,see below for code: HTML code: <div id='map'></div> CSS : #map{ width:100%; height:800px; } Openlayers map ...
1
vote
2answers
61 views

OL3 GeoJSON vs. turf GeoJSON

I am using OL3 and I try to inspect whether two lines are intersecting or not using turf. I used GeoJSON in OL3 and fed the lines into the intersect() in turf but I get Unknown GeoJSON type. here is ...
0
votes
2answers
73 views

Given a GeoJSON file how do I calculate the area of the embedded features?

We have a GeoJSON file that contains an array of features each with their associated geometry. How can I calculate the area of each feature? Are there any Java or Swift libraries to help me? Any ...
0
votes
1answer
35 views

Leaflet zoom to polygon

I receive a polygon layer in Leaflet via ESRI REST. (similar to here ) I want to have a menu where I can zoom to specific polygons. (one button per polygon) How can I do that?
0
votes
1answer
62 views

Openlayers example not working with coordinates

Hey guys i was just playing around with openlayers 3, and i created THIS fiddle, take a look at the javascript initilization code below: var styles = [ 'Road', 'Aerial', ...
0
votes
0answers
20 views

Order of coordinates for extent parameter

I was just going through the documentation for openlayers 3.11 and came across the Tiles() , Now it accepts a lot of properties(opacity, preload , map ... etc) , but the one i am interested in is ...
1
vote
1answer
30 views

How to console.log the imagerySet of a layer?

I found this simple openlayers example online , the map initialization looks like below: var styles = [ 'Road', 'Aerial', 'AerialWithLabels', 'collinsBart', 'ordnanceSurvey' ]; var layers = ...
1
vote
1answer
159 views

How to add a bounding box to openlayers 3 map

I have build a simple map using openlayer 3 , have a look at the code below: JS code: var map; function init(){ map = new ol.Map({ target:'map', renderer:'canvas', view: ...
0
votes
1answer
231 views

Configurable map viewer (CMV) - Find the area of drawn polygon

I am trying to get the area of a polygon and divide that by 16.94 ft^2. I have plugged in a Template I found. I am missing something. I am trying to get the template and my original code to talk. ...
0
votes
0answers
9 views

Heatmap renderer geoprocess result?

I have a geoprocess that returns a featureset of points. from this i create a feature collection and from the collection i create a feature layer. when i try to attach a heatmap renderer to the layer ...
1
vote
0answers
21 views

How to add a image link to javascript [closed]

I have some problem with my script. I want to add my picture link. I save the picture link at some table in geoserver this is my script <div id='gambar'> <img ...
1
vote
2answers
114 views

Native Mapping Application - Leaflet Mapbox

I am going to build a native mapping application that I would like to offer for Android and IOS devices. I am an accomplished developer of web-based app using javascript, html and css. I am also ...
0
votes
1answer
104 views

SQL Server Convert GeoJson format into SQL geometry/spatial data

I'm using javascript and Openlayers 3 and to draw shapes or geometry in osm map. The data is in geojson format and i want to store it in SQL server 2008 R2 using SQL geometry or spatial data types. ...
7
votes
3answers
1k views

Help needed using REGEXP for address string parsing

Using JavaScript, my aim is to create an "intelligent" address search function with a single textbox (rather than separate textboxes for house number, street name, street type, suburb, etc). I'm ...
2
votes
1answer
86 views

Zoom to GeoJSON point feature in leaflet

I'm relatively new to Web Mapping and trying to develop a litte Application with Angular JS and the angular-leaflet-directive. In this application I will work with a GeoJSON point layer representing ...
0
votes
0answers
9 views

StreetDirectory API: metricToGeo returns undefined

I am currently implementing the SD API and am trying to convert their x and y coordinates into lat and long. I only need the static values and this is how I implement it: <script ...
1
vote
1answer
2k views

Adding drop-down menu on leaflet map instead of L.control

I have created a choropleth map including several layers from the same geojson layer which is turkeyData in my case.I actually did it and it works fine. But I like to change the standart leaflet ...
0
votes
1answer
34 views

CSVLayer: Unsupported query parameters

I have a CSVLayer with a number of features to display on top of my basemap. The layer is added to the basemap as follows: var map = new Map("map", {...}); var basemap = new ...
0
votes
0answers
17 views

How to use getElementsByTagNameNS (with IE support) for a OGC WFS xml response

I'am using getElementsByTagNameNS() to get values from within a tag in an XML response from a WFS service. I have simplified the process in the HTML/script below. The HTML/script works fine with ...
0
votes
0answers
25 views

Openlayers3 modify interaction: Restore last modified coordinate(rollback modify)

In a scenario, I am allowing user to modify inner polygon which is contained within external large polygon. And while modifying the inner polygon I am keeping the track of the modification by using ...