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
221 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 ...
1
vote
0answers
8 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
0answers
8 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
11 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 ...
-4
votes
1answer
27 views

How to remove attribution in Leaflet

I want to remove the leaflet.com that appears on the right bottom of the screen here
0
votes
0answers
7 views

Menu layer in leaflet [on hold]

I want friendly easy to use layer menu with icons like in here GIS Map
1
vote
0answers
11 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
231 views

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

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
25 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 ...
1
vote
1answer
1k views

How can I dynamically restrict pan extents on an image layer in OpenLayers 3?

I have been sandboxing with OpenLayers 3 and thus far have been happy with the results. I have used answers on this site to restrict my most zoomed out level from panning and to restrict the range of ...
9
votes
2answers
355 views

Instructor led Web mapping development courses? [on hold]

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
28 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
19 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 ...
7
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 ...
1
vote
2answers
811 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
34 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
1 view

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
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 ...
0
votes
1answer
30 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
22 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
34 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
19 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
2answers
1k views

OpenLayers vector does not draw (or re-draw) on zoom level change or layerswitcher off/on

Here is the full code (i'll highlight the important parts after): jQuery(document).ready(function($) { // ...
0
votes
1answer
342 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
0
votes
0answers
9 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
2answers
952 views

Using snap point when using measurecontrol in OpenLayers?

I have a problem about measurecontrol. I can use measurecontrol and I can show length to use measure control . But my problem is that I didn't use in snap because measurecontrol is a control, not a ...
0
votes
1answer
412 views

google.maps.InfoWindow is not working

If anyone encountered the same problem and come up with the solution please give me an idea if what's wrong with this code. The InfoWindow is not working when i click the map polygon. All parts ...
0
votes
1answer
177 views

Create a polygon from an array of coordinates in arcgis javascript api

Well I am building a GIS web app using ArcGIS Javascript API , I want to create a user interface in which the user provides an array of coordinates and I have to get those coordinates and create a ...
0
votes
1answer
217 views

Date field formatting as number in ESRI popup window

We are using the Park and Recreation Locator from ArcGIS for State Government and trying to put a date field into the popup info window. The field is pulling the correct data, but it's formatting it ...
2
votes
1answer
304 views

Using Odyssey.js with Cartodb.js

I'm looking to use Odyssey to create an interactive introduction to various data layers on an interactive web map I've created using CartoDB.js. I'd like to have different data layers turned on / off ...
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?
2
votes
1answer
213 views

Showing link for every city at different zoom levels using Leaflet?

I have a Leaflet map that I am using to render a map of the U.S. The map will have specific zoom levels. For example, when the map first loads it will show major U.S. cities. Then if you zoom in it ...
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 ...
1
vote
1answer
229 views

Openlayers filter strategy on wfs deactivate problem

I have a filter control which works nicely. However, when I try to reset/remove the filter, I don't get the original features back. The debugger shows my features array as still only being the reduced ...
2
votes
1answer
286 views

How do I modify the WebAppBuilder "LayerList' widget to use radio buttons instead of checkboxes?

I've downloaded the developer version of the Web app builder and installed in on my machine. I can open up the widget '\LayerList\LayerListView.js', and I have been exploring the source code. I would ...
2
votes
1answer
33 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 ...
0
votes
1answer
321 views

Parsing XML file with hundred polygons using OpenLayers

I'm using this script but It's not working. <script type="text/javascript"> var raster = new ol.layer.Tile({ source: new ol.source.OSM() }); var xml = new OpenLayers.Format.XML(), wkt = new ...
3
votes
1answer
29 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
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++) { ...
1
vote
1answer
24 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 = ...
1
vote
1answer
493 views

Using sql SELECT DISTINCT in Fusion Tables API

How do I go about using sql SELECT DISTINCT in fusion tables API?
-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 = ...
0
votes
0answers
31 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
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
346 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
1
vote
2answers
169 views

Openlayers - ModifyFeature - How to label vertices with a progressive number

I am quite new in openlayer and javascript. I have a control ModifyFeature on a path vector layer. I would like the vertices to be rendered with a stylemap label showing their progressive number ...
2
votes
1answer
52 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 ...