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

Why reprojection GeoJSON with new.ol.View - not working?

I try to reproject GeoJSon file in OpenLayers 3 from : Geojson link With these JS in head : <script src="js/jquery-2.2.3.min.js" type="text/javascript"></script> <link ...
2
votes
1answer
34 views
0
votes
0answers
37 views

Loading WFS from Geoserver to Leaflet

I use GeoServer 2.7.0 and Leaflet-0.7.7 and the jquery: <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>` for showing a WFS in my Geoserver. How do ...
0
votes
1answer
41 views

Read WKT geometry using JTS 1.13 in java

I want to create a shape file from coordinates, in the client side I take the coordinates of a polygon by opelayers, it send to a java class, in this class read the geometry of the polygon, when the ...
0
votes
1answer
56 views

How to call the geojson dynamically according to area selection in openlayer 3

I'm trying to get geojson according to the selection of a particular area. For example, if I have selected a built up area it will only show that area . I'm calling geojson data through php page, and ...
0
votes
1answer
39 views

openlayer 3 popup on marker mouseover

I'm only able to get popup on click. Can we get popup on marker mouseover Here's the example link Like in this example popup start display onclick on marker..But i wanted popup will automatically ...
1
vote
0answers
39 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
3
votes
0answers
61 views

How to get the best GPS position Geolocation API

I want to get the most accurate position of my mobile phone with android. I'm comparing accuracy value in 2 seconds interval and if value is less than last value I'm trying to keep the position in ...
0
votes
0answers
9 views

JavaScript API ArcGIS Combine Legend with On_Demand feature class query

I am having trouble adding a legend to my JavaScript code I have a basemap, scale bar, and a click on demand query info box for my feature class which displays the attribute fields but when I add the ...
1
vote
0answers
24 views

Change maxZoom option in runtime to ol.View in Openlayers 3

Im trying to change the maxZoom option once a functionality of the map is activated. So it has to be during runtime so it can be rolled back to the original maxZoom. Creating the ol.View you ...
1
vote
0answers
23 views

Open layers 3, map.on('moveend',..): Differentiate between user interaction and map.setCenter() calling

I am implementing OL for a GIS application and want to add a 20 seconds timeout when the user scrolled the map, after which the GPS auto track function should resume. For that I am utilizing the ...
1
vote
1answer
12 views

Viewing the data without any background imagery in Cesium

Is there a way to completely disable the background imagery in cesium? I would like to see only my data without any background imagery. Is this possible?
0
votes
1answer
51 views

Add and later access Leaflet.draw polyline index and a new property value

I am using the Leaflet draw plugin located at https://github.com/Leaflet/Leaflet.draw and what I want to do is when a person draws a new polyline to print in the console the index number of that ...
1
vote
0answers
18 views

How can I ask for location and display it on map on my website? [closed]

I have added a map to my website. Now I want to add a feature to it wherein when a user clicks on the add event button on the header a popup should appear which ask for event name and location and as ...
2
votes
1answer
36 views

Add Links to Leaflet Choropleth Map

I'm making a choropleth map based on this example I would like to add links to the map, so that when a user clicks on a state they will be taken to a specific page. For example, a user clicks on ...
0
votes
0answers
13 views

Symbols not Rendering if more than 100 records

I have a link in the infowindow that displays all sale records in a particular area. The link work fine if there are less than 100 records. If there are more than 100 records then nothing happens ...
1
vote
0answers
23 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 ...
2
votes
1answer
38 views

Adding labels in cesium

I tried adding labels to my cesium application using the below code var entities3 = dataSource3.entities.values; var colorHash = {}; for (var i = 0; i < entities3.length; i++) { ...
3
votes
1answer
45 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
34 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 ...
1
vote
1answer
39 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 = ...
0
votes
0answers
36 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. ...
2
votes
1answer
79 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
36 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
8 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 ...
2
votes
1answer
38 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 ...
0
votes
0answers
17 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 ...
4
votes
1answer
65 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 ...
1
vote
1answer
106 views

3D OSM buildings seems to be floating and shifted after adding terrain effect in Cesium

I had made a 3D view of the osm buildings using cesium. In which i had added a terrain effect using the standard cesium terrain provider as below var viewer = new Cesium.Viewer('cesiumContainer'); ...
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 ...
0
votes
0answers
9 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
0answers
39 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
1answer
63 views

How to use offline routing Dijkstra in javascript?

I am using a Openlayers 3 to create a Hybrid mapping app and among the constraints it must be for offline use, I have a road network in a geojson file and I need to get the shortest path from the ...
0
votes
1answer
41 views

OpenLayers 3 opacity overlapping

I've got some issues with OpenLayers 3 when displaying a Vector layer with opacity. The more I pan or zoom in the map, and the less transparency there is on the features. I think this comes from the ...
1
vote
1answer
70 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
31 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
27 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
1answer
85 views

OpenLayers 3: does not display all Features of Layer

I'm using openlayers 3 and geoserver. I want to get and display a wfs layer with openlayers. this is source of my layer: vectorSource = new ol.source.Vector({ format: new ...
0
votes
0answers
39 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 ...
0
votes
1answer
40 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
19 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
23 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
0answers
38 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
36 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 ...
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 ...
0
votes
1answer
59 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
11 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 ...
0
votes
0answers
32 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
51 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
17 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 ...