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
7 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
9 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
10 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 ...
0
votes
1answer
12 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
11 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
17 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
18 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
18 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
18 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
23 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
22 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
15 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
37 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
25 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
19 views

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
60 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
14 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
1answer
26 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
182 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
11 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
35 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
9 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
21 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
21 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
16 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
19 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
25 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
23 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
32 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
36 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
40 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
61 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
34 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 ...
0
votes
1answer
40 views

Leaflet: Find my “this” in GeoJSON.pointToLayer function

In leaflet, I have a class that extends L.GeoJSON: L.MyLayer = L.GeoJSON.extend ({ initialize: function () { this.markers = []; ... I redefined the pointToLayer method to create ...
0
votes
0answers
32 views

How to generate features for a drawn polygon on a vector layer and send it to Json file using ol3

I have generated attributes for a drawn polygon on a vector layer. While selecting the drawn polygon on map i am getting geneated features on a table. But i want to store in same Json file where i am ...
0
votes
0answers
36 views

How to get GeoJSON properties to appear in openlayers 3 popup when using CLUSTERS?

I'm attempting to get my geoJSON properties to appear in my on-click popup but no matter what I try, it either returns the geometry name object Object or Undefined. I think openlayers stores cluster ...
0
votes
1answer
16 views

Unable to serve .terrain files in cesium sandcastle

I am learning 3d terrain generation using CesiumJS. I generated .terrain files usind Cesium terrain builder and kept them in 'cesium/apps' directory for testing purposes and to avoid CORS issues. ...
0
votes
0answers
38 views

ArcGIS Web AppBuilder View Query Results in AttributeTable

I'm building a couple of custom widgets for use on a Web AppBuilder app that do some queries against feature layers. I get back a feature set, which I can convert to a local feature layer. What I'd ...
0
votes
0answers
46 views

Leaflet tile rendering

I've startet tinkering with the Leaflet JS library in order to display a Web Map Tile Service (WMTS). By default Leaflet does not support the WMTS standard. An initial investigation has revealed that ...
0
votes
0answers
20 views

how to search for a Point of LineString geometry in a json file using OpenLayers 3

I have a json file with polygons. Here I added the json layer onto OSM layer(baselayer). I would like to search for a Point's LineString in the layer, from which LineString that Point been selected. ...