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)

3
votes
0answers
14 views

How do I remove the terrain checkbox from Google Maps?

I don't mind having the map/satellite options, but I don't need the terrain option for my map. How do I disable just that? I don't see it documented well on ...
0
votes
0answers
23 views

How to write features to a shapefile in java

I have a vector layer that export as a shape file (zip with .dbf, .fix. prj and .shp inside)(see this question to all code) if it has one feature works fine, but when it has more features exports the ...
1
vote
0answers
7 views

Can we combine SVG Overlay with MarkerCluster v3?

I have searched here and there on how to prevent the overlapping circle (svg) layer created from json file. Poor me, no luck till now. Since I doesn't know how to prevent the overlapping circle I ...
0
votes
0answers
45 views

Can I get the coordinates of maritime borders from Google Maps? [on hold]

Our fisherman are facing real time problem every day because of crossing border limit of sea level. Lets take this problem as an opportunity to give simple HTML5 application. So I want to check ...
0
votes
0answers
10 views

Design a system to provide information and routing for users based on coordinates [on hold]

I am a software developer, but have no experience with geographical softwares. I would like to design and build a system that provide information for users about the area of the street they are ...
0
votes
1answer
30 views

OL3 how to get WKT representation of a Polygon

I have a vector layer in ol3 that i want to export to a shape file, I take the geometry of the polygon. In an attempt to fix an issue with my WKT (see this question) I add the first coordinate to end ...
1
vote
1answer
13 views

Adding WMS layer with CQL filter

I would like to add to my leaflet's web map layer from my WMS service (Geoserver), but I need to use CQL filter in GetMap link: localhost/geoserver/my_location/wms?(...)&CQL_FILTER=[...] Is ...
0
votes
0answers
8 views

Menu layer in leaflet [on hold]

I want friendly easy to use layer menu with icons like in here GIS Map
-4
votes
2answers
35 views

How to remove attribution in Leaflet

I want to remove the leaflet.com that appears on the right bottom of the screen here
1
vote
0answers
13 views

After Feature Layer reference is added all dojo references are not recognized

I'm creating a simple javascript management system in which I have to query 6 feature layer services, edit, add or delete data from the services. Every time I want to add the Feature Layer reference ...
1
vote
0answers
26 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
27 views
0
votes
0answers
29 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
24 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
39 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
22 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
24 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
36 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
2 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 ...
0
votes
0answers
11 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
21 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 ...
0
votes
0answers
6 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
36 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
16 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
34 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 ...
1
vote
0answers
10 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
13 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 ...
1
vote
0answers
22 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
35 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 ...
-3
votes
0answers
21 views

Proj4js not working

I'm using proj4js library in Openlayers 3 to reproject a simple osm map so I can have the center of my map located in Greece (EPSG:2100). So I'm having this code: <script> var osmLayer = ...
1
vote
1answer
28 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
25 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
32 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
54 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
24 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
33 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 ...
3
votes
1answer
44 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
60 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
6 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
36 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
53 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
0answers
22 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
52 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
30 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
24 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
50 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
34 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 ...