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
0answers
28 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
32 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
71 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
2answers
88 views

Toggle geojson labels using control with leaflet

I am attempting to create my first leaflet map. I am using OpenStreetMap tiles and adding geojson features as overlay layers. I have been following tutorials with much success, until I started trying ...
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
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 ...
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
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 ...
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
1answer
79 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 ...
2
votes
1answer
48 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
93 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
37 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
75 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
21 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
175 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
22 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
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, ...
1
vote
1answer
58 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
29 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
113 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
18 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
93 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
46 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
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 ...
0
votes
3answers
76 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
44 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
150 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
35 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
37 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
71 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
51 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
75 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
92 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
64 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
166 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
83 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
227 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
36 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
85 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
184 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 ...