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)

2
votes
1answer
46 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
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
84 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 ...
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
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
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 = ...
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
1answer
156 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: ...
1
vote
0answers
20 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 ...
0
votes
0answers
76 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, ...
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 ...
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 ...
0
votes
1answer
101 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. ...
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 ...
2
votes
1answer
84 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 ...
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
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 ...
0
votes
0answers
16 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 ...
0
votes
3answers
73 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
42 views

OpenLayers 2, GeoJSON cant get coordinates to work

I'm trying to display some Polygons on a map, and I'm new to OpenLayers, maps and GeoJSON. First what work: vector1 = new OpenLayers.Layer.Vector("GeoJSON1", { projection : "EPSG:4326", ...
2
votes
1answer
32 views

How to iterate through the attributes of a feature in Leaflet?

I receive polygons via the ESRI REST API with Leaflet. I want to iterate through all attributes of a feature in order to create a custom pop-up for it. My code looks like this: myLayer.on('click', ...
0
votes
0answers
144 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
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 ...
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 ...
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 ...
1
vote
2answers
69 views

Where is the drawn feature when the drawend is triggered in OL3

I have written a piece of code to check if the drawn line is intersecting other lines in the vector layer. If so, then the line should be split and new lines should be added to the layer. here is my ...
0
votes
0answers
49 views

Highlight / Bounce marker on openlayers openstreet map and add hover

I have a page where i have a table at the bottom and a map on top of page. different table rows map to different markers on the map. I have a need to highlight a marker by doing something like ...
0
votes
1answer
72 views

How to add a bounding box filter to this leaflet WFS request?

I use this function to add an interactive layer to my leaflet application. It works great in most browsers, but fails due to time-out error on certain networks and browsers. The solution I think is to ...
2
votes
2answers
85 views

Leaflet Vector Layers Not Rendering During FlyTo Animation

In version 1.0 of Leaflet, when using the FlyTo function as per this JSFiddle, is it possible to force vectors to render/ draw as the animation is happening? My current issue is when using the ...
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 ...
1
vote
2answers
153 views

Fly To Location in Leaflet

Is it possible to 'fly to location' in Leaflet in the same way as this Mapbox GL example?
1
vote
0answers
80 views

Turf.js Check if polygon “Contains” another polygon

I am using turf.js for geometrical operation on openlayers3 features but i think it lacks support for "contains" operation. There are these within and inside operations, but they return "false" when ...
0
votes
1answer
217 views

transparent infowindow google maps apis

I can add a div into the infowindow content and set it's style giving it background color, but I failed to make it transparent. Is there a way to make the infowindow of google maps API transparent, ...
0
votes
1answer
31 views

How do you toggle between layers that have been loaded using the FileLayerLoad.js?

I'm trying to toggle between geojson layers that were loaded using the filelayerload javascript. Right now I'm basically stuck on how to append the geojson layers to one variable once they have been ...
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: ...
1
vote
1answer
83 views

CartoDB.js API geojson layer not rendering

I am working with the CartoDB.js API and have taken this example from Azavea. http://sandbox.azavea.com/cartodbvisualization/ There are a few declarations that I do not need, however conceptually my ...
0
votes
1answer
167 views

CartoDB json to HTML Table using Javascript or Jquery

I am trying to display the dataset inside the cartoDB as HTML table. When i give request to the postgre database by SQL API, it is returning as the format (json) below in the snapshot. I want the ...
1
vote
0answers
37 views

Route between two coordinate points via line

I tried to search for an answer but couldn't find any so I decided to ask. I would like to ask which would be the best way to get the shortest (and the only one) route between two points from a part ...
0
votes
0answers
27 views

Temporal Heat Map using Leaflet and ESRI

I am trying to create a temporal heat map using this template: https://esri.github.io/esri-leaflet/examples/visualizing-time-with-feature-layer.html I would like to show the symbology based on a ...
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 ...
2
votes
1answer
41 views

Story Map SpyGlass without ArcGIS Online?

I am looking to see if there is an implementation example of the Spy Glass widget without ArcGIS Online or Story Maps. I have found the LayerSwipe documentation and can implement that fine, but I ...
1
vote
2answers
98 views

Why do my kml polygons move during zoom (using leaflet and meteor with OpenStreetMap)?

I'm using meteor.js and leaflet.js to build a simple application that displays kml polygons on an openstreetmaps layer. I can get the polygons to display fine, but during a zoom operation the polygons ...
-1
votes
1answer
80 views

Python or Javascript focus (for self-directed study at university) [closed]

Next semester is my last at university. I have taken all 3 of the GIS courses offered in my program. Besides some very light interaction with Python though, their has been zero discussion of ...
1
vote
1answer
127 views

Leaflet Marker Cluster: refreshCluster function issue

I am trying to use the markers.refreshClusters(); function to refresh the marker icons for a new styled icon I am trying to work with to highlight the selected cluster. Unfortunately, I keep getting ...
0
votes
2answers
84 views

how can I specify a popup to show only for a specifc layer in openLayers 3?

I am using the function to define popup contents in a map, and right now, it createa a popup for every feature I click on the map, no matter what layer it is in. I would like this popup to appear only ...
1
vote
1answer
54 views

Unable to find all points in extent area using ArcGIS API for JavaScript?

I am trying to create a map where I can draw a selection area, and get info of all graphic pointers under it, I tried to modify ArcGis example but the problem now is that I can only able to select ...
1
vote
1answer
176 views

Leaflet Opacity Control Using Slider For Bootstrap

I am attempting to use the Slider For Bootstrap to update the opacity of a layer within Leaflet. The slider also needs to be in a Bootstrap Popup but this part is working. As per this JSFiddle you ...