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
27 views

Labels overlaps and more spaces between letters in cesium

I have a geojson loaded in cesium and also i had added labels for the layer with below code positions = entity.polygon.hierarchy['_value'].positions; //console.log(positions); center ...
3
votes
1answer
49 views

Geotools 12.3 creating shape file from coordinates

I want to export a vector layer to a shape file (create a zip file with .dbf, .fix. prj and .shp), but when the exported .shp file is opened in a Desktop GIS it doesn't show anything. For the ...
1
vote
1answer
77 views

Viewing a point geojson layer as markers in cesium

I have a point geojson layer and i would like to add and view it using cesium. I tried with the below code var dataSource1 = new Cesium.GeoJsonDataSource(); var roads = dataSource1.load('Apps/...
1
vote
1answer
534 views

Using sql SELECT DISTINCT in Fusion Tables API

How do I go about using sql SELECT DISTINCT in fusion tables API?
0
votes
0answers
37 views

Cannot draw two layers at once using Leaflet

I have two map layers that I want to show at once: One is the full data, the other is a filtered version of the data. The map will draw with each of these layers, but not with both at the same time. ...
1
vote
1answer
56 views

Checking if point is inside irregular polygon?

I'm using Javascript (https://github.com/substack/point-in-polygon) to test if a point is inside polygon, however I think it's adapted from https://www.ecse.rpi.edu/~wrf/Research/Short_Notes/pnpoly....
2
votes
1answer
110 views

Leaflet map draggable marker events

Everytime I click on the map I create a draggable marker with a drag function. It works great, however everytime I release the mouse after I dragged some marker, the click event of the map is ...
0
votes
0answers
51 views

Adding intelligent search box to cesium for implementing search within layer from server side?

There is a default search box in cesium to search by address or by landmark. Now i want to add a intelligent search box to search within the layer. I would like to know how to add such search box and ...
0
votes
0answers
14 views

Using IDW method and its output raster in a web app

I am creating an web app and needs to interpolates between some points- Weather data- (with IDW method) and show the results as a raster (like the output from ArcGIS) so a user can click on raster and ...
1
vote
1answer
161 views

Using AndNav tiles storage as input for OpenLayers.TMS

Is there a possibility to use map tiles from AndNav (created wit Mobile Atlas Creator) that are in format: Mapnik\12\2241\1369.png.andnav (I know that 12 is the zoom level but don't have idea what is ...
4
votes
1answer
88 views

Better (faster) way to join a csv to a geojson in Leaflet?

My goal: Store the attributes of a geojson in a csv file Allow a non-GIS user to edit a cloud-hosted csv file which then updates a webmap Have the web map be a static app with no GIS/PostGIS/SQL etc ...
2
votes
1answer
43 views

Using Multiple Versions of ArcGIS API for JS in Same Application

We've a large web based GIS application running which uses an older version of ArcGIS API (v3.7) for JS. The ArcGIS JSAPI v3.7 is lacking some functionality which are available in v3.15. Now I also ...
1
vote
0answers
42 views

Azimuthal Equidistant Projection - Rotate projection

I am using Azimuthal Equidistant Projection to plot points in a map being drawn in an Android application. The origin is the centre of the map. I have the formulas from here and here. I am getting ...
0
votes
0answers
21 views

Caching 10.1 to 10.3.1 version change caused issue?

In an ArcGIS Server 10.3.1 website we have two cached web services that will not display. A separate Server 10.1 shows them both without issue. Any ideas why the one Server will not show the ...
1
vote
1answer
57 views

ESRI Print Task (export web map) returns 500

I tried to export web map(Esri) with print task service. it works in localhost and in staging.xxx.com(http) too.But in preview.xxx.com(https) , it throws the error 500: Error performing execute ...
0
votes
0answers
7 views

CartoDB infowindow stuck at the top of the browser page

I am trying to put infowindows in my CartoDB.js map, but currently my infowindow is stuck displaying in the top lefthand corner of the browser window instead of over the points clicked. This is my ...
2
votes
1answer
1k views

Programatically add feature to Feature Layer with ArcGIS JavaScript API

I've so far been able to add a feature layer from an ArcGIS server, and I've also been able to add an editor widget which allows me to draw to feature with the mouse. The added features are being ...
0
votes
0answers
10 views

Want map layer colors to change with button clicks… One of them isn't working correctly!

I have three buttons that show different queries on a data set. I want them each to also display in a different color. When the map loads, I have the default layer in blue. However, After clicking the ...
1
vote
1answer
122 views

Viewing a geojson as 3D in cesium

I have a geojson with height informations in it. I tried adding the geojson to the scene using var viewer = new Cesium.Viewer('cesiumContainer', { sceneMode : Cesium.SceneMode.SCENE3D, timeline : ...
0
votes
1answer
34 views

Arguments not working in cartoDB createLayer method

I added a cartoDB layer to an existing map using createLayer method and it loaded properly. Thereafter, created a variable params and parsed the arguments as sees on the code snippet below. ...
1
vote
0answers
32 views

Changing layer color with a button click

I am trying to change the color of my map layer when filter buttons are selected. So, the goal is: the user sees all of the data in one color. Then, when they click on a filter button, only a subset ...
0
votes
0answers
52 views

OpenLayers 3 : ol.View setMinZoom or setMinResolution?

I'm working with OpenLayers 3.14 and still have the same problem that should be so simple. I'd like to change the ol.View object properties, but not in the same declaration than the var map = new ol....
0
votes
1answer
49 views

Error with popup overlay in OpenLayers 3?

In OpenLayers (OL) 3.15.0 I declare a popup contains like : popup = $(eval('<div id="popup"><p>My contain</p></div>')); And after, I declare my overly with this popup ...
0
votes
0answers
28 views

Building layer not showing any attribute when using feature grid plugins in gxp app.js?

I am following the OpenGeo suite 4.8 building complete web application tutorial. In that tutorial I am trying to add feature grid of a layer as mentioned in tutorial. But I am not getting any ...
0
votes
0answers
33 views

Draw point turns into panning for Openlayers 3?

I've been trying to use the draw interaction on OL3, and as soon as I drop the point on my map and leave the on draw.on('drawend function, the map starts panning like its bound to the pointermove ...
1
vote
2answers
1k views

Using OpenLayers 3 spyglass?

I would like to use OpenLayers 3 spyglass example inside my project. The problem is when I want to use selection for layer, which will be inside spyglass circle. I can't get it working, I don't know ...
1
vote
0answers
47 views

Is there any way to use Cesiumjs to import 3D Models using the British National Grid (OSGB36)?

I am trying to import a 3D model (.gltf) into Cesium which is in OSGB36 projection, however I know that Cesiumjs doesn't support British projection natively. I've tried changing the origin of the ...
0
votes
0answers
46 views

Google Maps does not show NASA world view maps layer. JAVASCRIPT

The function is called on window onload but I am uncertain about the getTileUrl's anonymous function. where does it get the tile and zoom parameters from. The main problem is it does not show the ...
0
votes
1answer
599 views

How to use leaflet-search for a geojson feature property?

I'm trying to use the leaflet-search plugin to search for a specific geojson property (i.e. 'Name'). The trick part of this is I want to perform a search on a Geojson file thats loaded in via the ...
1
vote
0answers
23 views

ArcGis layer query: Average annual precipitation for area in U.S

I need to get average precipitation for certain land parcels. I've found several layers which could offer this information but queries do not return results or indicate error. Below is example of my ...
7
votes
2answers
1k views

How to reference the ArcGIS Server JS API using RequireJS

When using RequireJS to load a JavaScript library from a CDN, an example syntax is shown at https://github.com/requirejs/example-jquery-cdn: requirejs.config({ "paths": { "jquery": "//ajax....
0
votes
1answer
75 views

Text + Chart inside pop up window in Javascript

A similar question had been posted in this thread : Chart inside pop up window in Javascript I'm trying to do the same, but i would like to add others things in the popup (like text, feature ...
0
votes
0answers
13 views

Stop event in OpenLayers3

I used the example of this website : http://openlayers.org/en/v3.8.2/examples/feature-animation.html for make an animation. I don't have problem for stopping the event with the function clearInterval(...
0
votes
0answers
47 views

Can turf.js be used to find and repair bad geojson geometry?

Methods: I'm currently using turf.js for geoprocessing as part of a broader mapping project; my workflow looks like this: Pull geojson of census tracts for an entire county Pull geojson tiles of ...
0
votes
2answers
63 views

Layer not staying on top of all other layers

I am trying to keep a specific layer named popDensity on top of all the other layers on my map despite what other layers I may click in the layers control. I am using the Leaflet overlayadd event to ...
1
vote
0answers
18 views

Land Use Public Notification: Invalid geometry [closed]

I am in the process of incorporating our data into the Public Notification app from ESRI, but when I load in our parcels, I get an error saying "Unable to perform operation: invalid geometry". I have ...
0
votes
1answer
30 views

LeafletJS: How to hide legend when layer is clicked?

I am trying to show/hide a legend when a certain overlay is clicked, but can't seem to get the legend to hide when the overlay is unclicked. Here's my sample setup: //establish the data var ...
20
votes
5answers
11k views

Visualizing large datasets with Leaflet

When using Leaflet to visualize a large dataset (GeoJSON with 10,000 point features), not surprisingly the browser crashes or hangs. A sub-sample of 1000 features from the same dataset works ...
0
votes
0answers
191 views

Google Maps API : Picklist on markers

I need to change the markers colors by showing a picklist onclick. For example: A red Marker, with the inner info 'Red', when clicked shows a picklist with others colors (blue, black,... ), when ...
0
votes
0answers
17 views

How to import Query form in gxp app.js file

I am using suite sdk for developing web mapping application for my own layer. I am using geoserver for publishing the layer which are created in QGIS and stored in PostGIS database. I am getting ...
0
votes
0answers
19 views

Create custom library in openlayers 3

I'm currently using openlayers 3.4.0. I want to add SetZIndex and GetZIndex methods to OL 3.4.0 (from latest version 3.14.1). Could you please someone tell me, How to create custom library or separate ...
1
vote
1answer
30 views

How to color arcs with arc.js?

I've been using arc.js and I was trying to see if there was any way to color the arcs, except for the normal blue shown(ex). I tried looking around with the arc options, but I couldn't really find ...
0
votes
1answer
150 views

Drawing circle with OpenLayers3, but not seeing on map?

I am trying to draw a circle on a map, using open layers 3, but I am not sure why the circle is not rendering. My expectations with the code below is that is should be centering on -73.5971431341708, ...
3
votes
1answer
233 views

Control to select data source on Leaflet map

I am building a map using leaflet. My data source looks something like this: var districts = {"type": "FeatureCollection", "features": [ {"type":"Feature", "geometry": {"type":"MultiPolygon","...
3
votes
1answer
207 views

Show Cartodb Maps infowindow on hover programatically

How do i get to show the cartodb infowindow when one hovers over a point? I see that it is possible via the gui but how can one do it via code? what method should i call on the on('featureOver') event?...
0
votes
1answer
91 views

Drawing arcs/curved line/arrows with Leaflet using method other than arc.js?

I've been trying to find a good way to draw arcs or even arrows dynamically with Leaflet.js, but I haven't come up with much. I tried arc.js, however I was having problems with that approach, and I ...
0
votes
2answers
101 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: https://github.com/csergent45/streetSigns/tree/...
0
votes
0answers
40 views

Is it possible to select and highlight a polygon that contains points in one cluster in openlayers 3

my question is I need to select one cluster for that cluster there will some points. Right now I am able to select points in one cluster selected from the drop down. i have added markers to it. now ...
0
votes
1answer
72 views

Get array of LatLngs from ArcGIS feature layer polyline using Esri-Leaflet

Leaflet has a method built into the polyline class to return an array of all LatLng coordinates of the line. It would look something like: var latlngArray = polyline.getLatLngs(); Esri-leaflet, the ...
0
votes
0answers
24 views

Keep NoData values when using gdal_merge

I'm using gdal_merge to join several BioClim rasters, which I will then feed into a Java program that "snaps" points to the nearest BioClim raster tile of non-NoData value. However, when I run ...