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
1answer
150 views

WFS from geosever very slow to load in openLayers3

I originally posted this question about trying to load a geoJSON with openLayers3: geojson very slow to load in openLayers3. Based on a suggestion given in the post I'm now loading the layer in as a ...
2
votes
1answer
35 views

Exclude empty variables from OpenLayers 3 popup window

I have a map displaying multiple locations loaded from a JSON file. The locations are contained in a MySQL database along with various variables for each location including whether or not the location ...
1
vote
2answers
20 views

How to exclude parts of route based on street features?

I have a task. I have a route (coming from whatever, I am using Google Maps for now, but I can switch to OSM), and I want to exclude some parts of this route based on street features (like I don't ...
1
vote
0answers
40 views

Display a layer stored in GeoServer with Leaflet

I wanted to display a layer stored in geoserver with leaflet, I used this code but it's not working. var map = L.map('map').setView([4.477411, 21.309284], 3); L.tileLayer('http://{s}.tile....
0
votes
1answer
87 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 ...
3
votes
1answer
69 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++) { ...
1
vote
1answer
17 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?
5
votes
3answers
104 views

Open layer 3: Need help in print tool

I am developing an print map function in ol3 application it includes some functionality such as if its polygon then area of that polygon will be display OR if its line length will be display. At ...
0
votes
1answer
84 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 ...
1
vote
1answer
26 views

mapbox with markers and checkboxes - disable all from showing on initial load

I have a page I built to display wind direction/velocity in various locations along a bike trail: http://microflush.org/cgi-bin/pathInfo.cgi I have several markers in a legend, with check boxes to ...
0
votes
0answers
99 views

OpenLayers 3 - popup auto pan

I created a simple OpenLayers3 map with the plugin Qgis2web. It consists of a basemap with points. Every point has its own popup. This is the html code for the map and for the popup. <div id="map"&...
1
vote
1answer
113 views

Add Legend to Leaflet Map

I have a leaflet map that consists of various wms layers representing different years. I am trying to add a legend to my leaflet map but with my own custom hex colours instead of trying to use a ...
1
vote
0answers
17 views

Function access to surrounding object's variable

var CreateFeature = OpenLayers.Class(OpenLayers.Control, { clazz : "xyz", set_item : function(e) { var position = map.getLonLatFromPixel(e.xy); var latitude = position.lat;...
1
vote
1answer
33 views

White tiles with Google Chrome and OpenLayers 3 [closed]

I created personal tiles on my webserver, which works with Apache. These tiles are in folders from 0 to 16 in Jpg format. I render these local tiles with OL3.15.1. On Firefox, IE Edge and IE10 I've no ...
1
vote
1answer
25 views

Catch WMS empty answers with OpenLayers 3

I was wondering if there is a way with OpenLayers 3 to catch problems with WMS layers, such as the service not answering, or not sending any images/tiles. So that in case of errors with a distant WMS ...
1
vote
0answers
40 views

hide and show a feature from group feature with checkbox in leaflet

To begin I will explain the code, I have a checkbox generated after loading the web page by the next code var CPID = new L.GeoJSON(false, { onEachFeature: function (feature, my_Layer) {...
2
votes
2answers
4k views

OpenLayers-3 setting zoom so layers fit in map window

Is there a way to dynamically set the zoom level so that the current layers always fit within the width of the map frame on page load? Currently the zoom level is set statically such that when using ...
2
votes
1answer
77 views

Using JQueryUI Slider to change Layer Display (Leaflet)?

Can't seem to figure out how to use JQueryUI Slider to change the layer display on my leaflet map. Scenario is basically, When user slides bar across a dfferent layer shows up on the map (in years) ...
0
votes
1answer
265 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 ...
1
vote
0answers
134 views

How to write features in json file after drawing point on map in openlayers3

Can i save the features on selecting points into same json file? `function addInteraction() { draw = new ol.interaction.Draw({ source: floodAlertLayer.getSource(), type: ...
5
votes
2answers
343 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
0
votes
0answers
37 views

Loading huge amount of data in OpenLayers 3

I have been working on a PoC to load a huge amount of data ~ 350k-500k but I haven't been successful so far. I tried loading JSON then converting them to ol3 features (failed at 130k) then I used ...
0
votes
1answer
17 views

Simply trying to add another layer to openlayers3 script

Hi guys so im simply trying to add new layers with each as their own variable so i can turn them on and off, instead of just stacking all the layers under the variable 'layers'. See script below <...
-5
votes
2answers
141 views

How to remove attribution in Leaflet

I want to remove the leaflet.com that appears on the right bottom of the screen here
2
votes
1answer
239 views

Legend label failed to send to the print service using ArcGIS javascript

I am try to print my map with legend to PDF format; however, the legend label in the PDF is saying Override 1 instead of the label I specified in class breaks. There are other maps I can print ...
1
vote
0answers
18 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
1answer
101 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 ...
0
votes
1answer
280 views

How to call a leaflet Javascript Function in dropdown menu bar?

i have the following problem: my target is a hybrid app with leaflet. I create a dropdown menu with html/CSS/JQuery. Here is the code: <nav> <ul> <li id="menuPoint1"><image ...
2
votes
1answer
91 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 ...
1
vote
0answers
18 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
1answer
264 views

How to obtain elevation value from given SRTM data on mouse click in web browser? [closed]

I need JavaScript code for obtaining elevation data from SRTM tiff image. I have used Google APIs, but I need for downloaded SRTM tiff image. (SRTM file is being loaded on a base layer, and both ...
1
vote
0answers
45 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 rel="...
9
votes
2answers
357 views

Instructor led Web mapping development courses? [closed]

I have been messing around with programing for a while now and have gotten proficient with Python and have some interest in HTML 5 and Javascript. I have recently received a request for an IRD (...
0
votes
0answers
63 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 ...
2
votes
1answer
36 views

where i can add style in this code leaflet

var urlborne = 'http://localhost:8080/geoserver/Gestion-proprete/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=Gestion-proprete:borne&maxFeatures=2000&outputFormat=text/...
0
votes
1answer
86 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 ...
8
votes
3answers
2k views

Moveable ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol....
1
vote
2answers
879 views

Display photo in GeoExt popup

I have point feature with name PointPhoto. This feature have attribute: id area PhotoPath Now I am using GeoExt popup to display this attributes, but I cant find a way to display image from ...
0
votes
1answer
89 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
0answers
18 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
1answer
91 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 ...
0
votes
1answer
89 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 ...
3
votes
0answers
165 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 <...
1
vote
0answers
33 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 map....
1
vote
0answers
31 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
24 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
40 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
30 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
52 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 ...