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)

1
vote
0answers
9 views

CartoDB SQL 'Insert Into' vanishes with no error in Safari

I have a little application that allows users to search for locations on a mac submit comments to a CartoDB database using an HMTL form, JavaScript and SQL (and a little PHP to make the API connection ...
0
votes
1answer
12 views

What causes the Leaflet JS Providers error; Uncaught Error: No value provided for variable {time}

I am using leaflet providers and attempting to add the NASAGIBS.ViirsEarthAtNight2012 to my layer control, my other basemaps load fine; but this one doesn't and returns the following errors in the ...
0
votes
2answers
17 views

Creating a Polygon by clicking on a website embedded Google Earth

I have to create a Polygon on Google Earth which is embedded in my website as it is made in the Google Earth application. I managed to create a polygon already but i can only create it with the ...
0
votes
0answers
12 views

Adding in additional OpenLayers layer trees from layer parameters

I am developing an OpenLayers 3 web application were I would like to incorporate more than one Layer Tree. I have this JSFiddle set up that has a map with multiple layers and one Layer Tree. I would ...
0
votes
1answer
19 views

Pre-load tiles in OpenLayers 3

I need to preload images (.png) / tiles in my own source: new ol.source.XYZ ,which can it run fast to move and zoom in mobile devices. I used ...libs/ol3/3.7.0/ol-debug.js and as urls: urlArray ...
0
votes
2answers
26 views

Set a new SLD style in openlayers 3 for WMS request

I im triyng to submit a SLD style in openlayers 3 to change the color of my WMS(geoserver) But nothing is working...Anybody have a idea? Here is my code: var wms_p_popf = new ol.layer.Tile({ ...
4
votes
1answer
68 views

Find Intersection of Two Circle given Lat/Lon and radius

I am attempting to calculate the intersection of two circle on the Earth with a given latitude, longitude and radius. I started with this post. These circle will never be more than 100 km in diameter ...
0
votes
1answer
34 views

OpenLayers 3.7 New Server Vector WFS with GeoServer

I have recently updated from OpenLayers 3.0 to 3.7 and I noticed in the 3.5 update the Vector API has changed, I tried to alter the code as per the bottom section of code but i am getting the error ...
1
vote
0answers
12 views

Leaflet Markercluster and Timeline in sync

So I have been trying to figure how to use the markercluster and timeline plug in in sync to show a temporal animation of points. As some of the point data overlaps a cluster is needed to be able to ...
0
votes
1answer
18 views

Dynamic Layer Name - Leaflet Layer Control

I would like to have the name of a layer used by Leaflets layer control feature come from a variable instead of a string and based on data from the layer. The example shown below uses the variable ...
1
vote
1answer
23 views

How to add a polygon in Google Earth on a Website

As it is said in the title i have to add a polygon in Google Earth which is integrated in a website. I managed to integrate Google Earth in the Website, so i can view the world but i can not use any ...
0
votes
0answers
14 views

Openlayers 3 draws over other icons

I am using Openlayers 3. I made an html file witch opens map of a country in offline mode. It enables the user to draw images/segments and polygons on it. My problem is when I change the image I want ...
0
votes
1answer
27 views

Openlayers 3 bad coordinates

I am using Openlayers 3. In order to open the map i use OpenStreetMap generated tiles. When i try to get coordinates using polyFeature.getGeometry().getCoordinates() it provides me bad coordinates , ...
0
votes
1answer
22 views

OpenLayers 3 not displayed layer

Why my "OpenLayers" not displayed added layer? window.setWMS = function( WMSN ){ window._blockEvents = true; var url = WMSN[0]; var layer = WMSN[1]; var server = WMSN[2]; var wms ...
0
votes
1answer
20 views

How can i highlight a point using arcgis api for javascript?

How can i highlight a point using arcgis api for javascript? When i use the function of centerAndZoom ,I also want to highlight this point,how can i do?
0
votes
1answer
13 views

why my script does not change visible state layers?

why my script does not change visible state layers? window.setVisibleWMS = function(visible, index){ window._blockEvents = true; map.getLayers()[index].setVisible(visible); ...
0
votes
0answers
19 views

How to implement WPS functionalities from geoserver using openlayers3? [duplicate]

I am trying to build wps functionality using openlayers3. As we have seen the wps builder example in openlayers2 but no example i have seen in openlayers3. Can anyone provide me example for wps ...
0
votes
0answers
21 views

Mapbox.js: Bind dynamic popups with featureLayer?

I am building a multiple chloropleth map using v2.2.1 of Mapbox.js with featureLayer. Now I would like to add tooltips with custom content on hover event. This code is working well to set up the ...
1
vote
1answer
27 views

How to get line and polygon points from OpenLayers 3 drawing

I am working on drawing points/segments/polygons on a map that uses OpenLayers 3. The first part I have done draws points, lines and polygons. Now I am trying to retrieve the drawn coordinates in ...
0
votes
0answers
24 views

getting attributes of Openlayer Map by Javascript

I have created an OpenLayers map via the following code: var map = new ol.Map({ target: 'mapdiv', layers: [ new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'sat'}) }), new ...
0
votes
0answers
16 views

Open Layers 3 Dynamically or Batch Add Layers from user folder

I would like to dynamically load all layers (kml, for instance) from a user's folder to a group map. ...This likely requires an iteration that searches the folder and adds the layers to the users' ...
1
vote
2answers
41 views

Leaflet map on click ignore layers

Leaflet has a 'click' event: map.on('click', function(e) { alert(e.latlng); }); This does not appear to work when map layers are displayed on the area clicked. Is there a way to use ...
2
votes
2answers
30 views

CartoDB latlon change to lonlat

I have this script I am trying to use to search for a value within a CartoDB table. I can't seem to figure out how to reverse the order of the lat & long coordinates so they appear as lonlat... ...
0
votes
0answers
46 views
+50

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
3
votes
1answer
63 views

ArcGIS JavaScript API won't recognize ArcGIS online material that isn't shared publicly

I am trying to add KML Layers to the ArcGIS JS API. I have the KML layers hosted on the ArcGIS Online server. This data that I am working with contains some sensitive information and I am trying to ...
0
votes
0answers
19 views

cartodb featureClick not working

I am trying to get the on click event when a marker is clicked, but its not working at all. Here is my code var list = ...list of codes...; cartodb.createLayer(_this.mapData.map, { user_name: ...
0
votes
2answers
30 views

3D equivalent to ArcGIS API?

I am currently working on a 3D mapping project. And I have created some KML files from ArcGIS Online, and I have edited them in Google Earth to adjust the 3D attributes. I am also designing a webpage ...
2
votes
2answers
202 views

Google Maps need to click twice to get marker click event to trigger

I have a google map that I am populating with real estate listings from a database. I have set it up to refresh the listings when the map is panned or zoomed. I am using the dragend & ...
0
votes
1answer
12 views

how to create a cartodb layer via post request

I have a select query (really long) based on which I want to create a layer on google maps. I tried the same query in cartodbo map editor(online) it worked fine. But when I wrote a code to access the ...
0
votes
1answer
44 views

How to let the user resize a Leaflet map <div>

I use Leaflet to display some map. I would like the user to be able to resize the map by dragging its borders as she likes. I would like to do this without additional Javascript libraries, instead by ...
0
votes
0answers
6 views

How to change Level Zero Tile Count in Leaflet

I have a tile map that I want to display using Leaflet but the base layer is 4 tiles by 4 tiles instead of the usual 2 by 2. Is there a way make this work with Leaflet?
0
votes
0answers
11 views

Javascript - Convert arc polyline to arrow polygon

I am using the arc.js library to generate arcs on my map. Those arcs are polylines. I would like to transform those arcs into arrows polygon. To create the arc, I need the start and the end ...
2
votes
1answer
24 views

disable onEachFeature at zoom level, leaflet

I have a leaflet map that zooms and fits on the bounds of the polygon that is clicked via onEachFeature. Is there a way to disable this at a certain zoom level? I add new layers on the 'zoomend' ...
0
votes
0answers
13 views

Openlayers 3 equivalent of Openlayers 2 OpenLayers.Protocol.HTTP.options.params?

Is there a way to send data to the server with POST request instead of GET ? I used to use Protocol.HTTP.options.params for this purpose, but I can't find any equivalent in Openlayers 3 ...
0
votes
1answer
27 views

Selecting features by attribute in Leaflet

Is there a way to select an individual feature based on an attribute from a FeatureGroup in Leaflet? For example, when selecting a feature based on a click event, I will do something like, function ...
0
votes
0answers
19 views

Leaflet controls: onAdd() -> “ready” event

I've got a custom control for Leaflet (0.7.3) that uses L.DomUtil.create to generate its own HTML in the onAdd() function. Most of its bootstrapping happens in onAdd(), but I need to do some final ...
0
votes
0answers
35 views

Layer Tree Collapse Alongside OpenLayers3

I have the following JSFiddle that includes a layer tree for my OpenLayers3 map. It is currently set up so that when you click on the branch 'parent', the layers collapse. I'm looking to make it so ...
0
votes
1answer
20 views

zoomin and zoomout in google maps

Friends i am creating javascript web application using google maps. i am trying to create a tool for zoomin and zoomout option.i created two buttons for zoomin and zoomout, now i am trying to activate ...
1
vote
0answers
30 views

Leaflet Temporal animation of marker clusters

I recently have applied the markercluster leaflet plug-in to my map and I was wondering if something like leaflet.timeline would be compatible with cluster visualization? if not is there any other ...
2
votes
2answers
29 views

Adding a Polygon to an OpenLayers3 Map with coordinates read from a string

I do have a bunch of coords as a string read from a wps request result. I want to display these coordinates as a new layer added to the exisiting map. What I do is to split the string by containing ...
1
vote
0answers
36 views

way in R or Python to add image/video in map plot marker click popup/infowindow

I have many different (lat,long data) points of world associated with unique place names and corresponding each point specific image or video data. Now I want to create an html file where if user ...
-1
votes
0answers
17 views

To display vector layer in homepage using java [duplicate]

I am new to GIS. I am tring to create a webGIS application. I am using open source softwares ubuntu,geoserver, j2ee services to do this task. I strucked in the starting point of the application. I ...
0
votes
0answers
36 views

How to get attributes of a vector layer under drawn polygon in ol3

I added one vector layer on OSM layer. I want to show the attributes of vector layer under drawn polygon using ol3. please help me
0
votes
0answers
38 views

Having a basemap, tiled map and a dynamic map together

I have a basemap and a dynamic map which works perfectly together. But i have to add a tiled map too. But if i add the basemap first tiled map wont show up. I want to remove and add the Tiled layer ...
4
votes
0answers
42 views

Describing borehole information with geojson (javascript)

I deal a lot with borehole information and looking the best way to move it around in javascript / take advantage of javascript libraries (e.g. leaflet) for looking at this information on mobile ...
1
vote
0answers
16 views

Leaflet inbuild AJAX methods for WMTS getCapabilities request

I was wondering whether the Leaflet library has inbuilt methods to make AJAX requests. My goal is to create a plugin that makes an XMLHttpRequest request to a specified WMTS resource and parse the XML ...
0
votes
1answer
41 views

Arcgis javascript - Set different symbol for each graphic in feature layer

I have a feature layer that contains 12 items with the same defined style. But I want to change each item to have a unique symbol when rendered. var Layer = new FeatureLayer("http://...my map ...
1
vote
1answer
66 views

Using Mapbox (LeafletJS), how do I edit imported shapes from GeoJSON?

Overview: I'm currently working on a project where I'm importing GeoJSON into a map using Mapbox. However, I'm wanting to be able to edit those shapes once imported into the map. I've gotten the ...
0
votes
1answer
37 views

Adding an OpenLayers 3 layer parameter to change external layer controls

I have this JSFiddle that has a couple of layers and then a box after it where my opacity slider would be if all the correct external resources were loaded in. In the 'Cities layer 2' layer ...
1
vote
0answers
36 views

How to start the click event when drawing event is completed in openlayers3

I added two features for a map. first handles drawing on map and second one which will show the features in a table. when i am drawing the map the second click event is working. so i stopped the event ...