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
0answers
9 views

Adding in additional OpenLayers layer trees from layer parameters

I am developing an OpenLayers 3 web application were I would like to incorporate more than one Layer Tree. I have this JSFiddle set up that has a map with multiple layers and one Layer Tree. I would ...
0
votes
1answer
300 views

Drawing graphic layer on client side with ArcGIS API for JavaScript?

I'm using ArcGIS API for JavaScript 2.8. I have some problems with drawing graphics point on client side. The problem is, when I draw points by first time by JS api everything is OK. But when points ...
2
votes
1answer
198 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
1answer
112 views

GeoJson and D3.js multipolygon

I have this geometric shape file, so no map of a city. I store the two Shapefiles in a GIS database as a geometric form. Now, I want to visualize the geojson data. I created the GeoJson data ...
1
vote
1answer
569 views

refresh the map Ol3 (Openlayers3)

Hello I'm using ol3 in a mobile hybrid application using sencha touch2 , so I start by drawing a polygon inside a map , after validating this drawing I redirect the user to an other form in order ...
4
votes
1answer
61 views

Find Intersection of Two Circle given Lat/Lon and radius

I am attempting to calculate the intersection of two circle on the Earth with a given latitude, longitude and radius. I started with this post. These circle will never be more than 100 km in diameter ...
6
votes
1answer
476 views

Why do ArcGIS Desktop 10 HTML popups give JavaScript/HTML Error?

Using ArcMap 10 Desktop HTML Popups. The issue I am having is that the html < select > elements aren't working - you can select it and use the arrow keys to navigate through(up/down) the list but ...
0
votes
1answer
18 views

Pre-load tiles in OpenLayers 3

I need to preload images (.png) / tiles in my own source: new ol.source.XYZ ,which can it run fast to move and zoom in mobile devices. I used ...libs/ol3/3.7.0/ol-debug.js and as urls: urlArray ...
136
votes
18answers
53k views

How do various JavaScript mapping libraries compare?

I am working on a web-based mapping system and I'm trying to figure out the best/most appropriate library to use. There are a few of them about and they each have pros and cons. Even after trying a ...
1
vote
1answer
671 views

ArcGIS map service layer not loading properly

I'm at a total loss. My initial problem was an issue with the layer not loading at all when the page was set to the full extent, despite having changed the Min/Max Scale settings generously when ...
0
votes
2answers
29 views

3D equivalent to ArcGIS API?

I am currently working on a 3D mapping project. And I have created some KML files from ArcGIS Online, and I have edited them in Google Earth to adjust the 3D attributes. I am also designing a webpage ...
1
vote
1answer
768 views

How can i use snapp point in when i use measurecontrol?

I have problem about measurecontrol . I can use measurecontrol and i can show length to use measure control . But my problem is that .i didnt use in snap because measurecontrol is a control not ...
1
vote
1answer
323 views

Using sql SELECT DISTINCT in Fusion Tables API

How do I go about using sql SELECT DISTINCT in fusion tables API?
0
votes
1answer
27 views

OpenLayers 3.7 New Server Vector WFS with GeoServer

I have recently updated from OpenLayers 3.0 to 3.7 and I noticed in the 3.5 update the Vector API has changed, I tried to alter the code as per the bottom section of code but i am getting the error ...
1
vote
1answer
252 views

How do I use Proj4Leaflet projections correctly?

I'm loading data layers from a WMS server into a Leaflet map, and I need to give the user a choice of projections. For the WMS server requests, I just need to change the CRS parameter to a different ...
0
votes
2answers
22 views

Set a new SLD style in openlayers 3 for WMS request

I im triyng to submit a SLD style in openlayers 3 to change the color of my WMS(geoserver) But nothing is working...Anybody have a idea? Here is my code: var wms_p_popf = new ol.layer.Tile({ ...
1
vote
0answers
11 views

Leaflet Markercluster and Timeline in sync

So I have been trying to figure how to use the markercluster and timeline plug in in sync to show a temporal animation of points. As some of the point data overlaps a cluster is needed to be able to ...
0
votes
1answer
16 views

Dynamic Layer Name - Leaflet Layer Control

I would like to have the name of a layer used by Leaflets layer control feature come from a variable instead of a string and based on data from the layer. The example shown below uses the variable ...
2
votes
2answers
470 views

Authentication in Geoserver 2.4.x from a web application

I am trying to build a web application using html and javascript from which I want to login to geoserver hosted at: https://weaveprod.ucdp.utah.edu/geoserver/web/ I have written the following code for ...
2
votes
1answer
308 views

find inner bounds of a polygon in leaflet

How can I find the inner bounds of a polygon in leaflet? I a want to plot points randomly in polygoon but when I say Layer.getBounds() I get the bounds and I can still plot the markers ...
1
vote
1answer
15 views

How to add a polygon in Google Earth on a Website

As it is said in the title i have to add a polygon in Google Earth which is integrated in a website. I managed to integrate Google Earth in the Website, so i can view the world but i can not use any ...
1
vote
2answers
40 views

Leaflet map on click ignore layers

Leaflet has a 'click' event: map.on('click', function(e) { alert(e.latlng); }); This does not appear to work when map layers are displayed on the area clicked. Is there a way to use ...
0
votes
0answers
12 views

Openlayers 3 draws over other icons

I am using Openlayers 3. I made an html file witch opens map of a country in offline mode. It enables the user to draw images/segments and polygons on it. My problem is when I change the image I want ...
0
votes
1answer
156 views

get and change style property openlayers

i need to change the property of some style after its created, and i need to change it with knowing only the string of the property name. i am getting string like "fillColor" and value like "blue", ...
0
votes
1answer
667 views

Using URL of JSON file on local drive with OpenLayers support?

When i save json file in web apps then using http://localhost:8080/WGSClient/js/object.json this path file gets open. But when i keep it outside web apps like local folder then using same url format ...
3
votes
2answers
183 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
0
votes
1answer
21 views

OpenLayers 3 not displayed layer

Why my "OpenLayers" not displayed added layer? window.setWMS = function( WMSN ){ window._blockEvents = true; var url = WMSN[0]; var layer = WMSN[1]; var server = WMSN[2]; var wms ...
0
votes
1answer
27 views

Openlayers 3 bad coordinates

I am using Openlayers 3. In order to open the map i use OpenStreetMap generated tiles. When i try to get coordinates using polyFeature.getGeometry().getCoordinates() it provides me bad coordinates , ...
0
votes
1answer
1k views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
3
votes
1answer
406 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
0
votes
1answer
60 views

Mouse wheel events not fired when focus on map element INSIDE winform web browser

i'm displaying a openlayers map inside a winform web browser, since i'm getting focused on map element(with a click on the map), i have not getting mouse wheel events any more,even not document ...
2
votes
2answers
195 views

Google Maps need to click twice to get marker click event to trigger

I have a google map that I am populating with real estate listings from a database. I have set it up to refresh the listings when the map is panned or zoomed. I am using the dragend & ...
3
votes
1answer
61 views

ArcGIS JavaScript API won't recognize ArcGIS online material that isn't shared publicly

I am trying to add KML Layers to the ArcGIS JS API. I have the KML layers hosted on the ArcGIS Online server. This data that I am working with contains some sensitive information and I am trying to ...
1
vote
2answers
3k views

How to create styled markers with custom marker tooltip

How to create custom markers and when mouseover on marker i need a tooltip can any one suggest me how to do these type of markers...i need markers like below image Thanks in advance
0
votes
1answer
19 views

How can i highlight a point using arcgis api for javascript?

How can i highlight a point using arcgis api for javascript? When i use the function of centerAndZoom ,I also want to highlight this point,how can i do?
0
votes
0answers
19 views

How to implement WPS functionalities from geoserver using openlayers3? [duplicate]

I am trying to build wps functionality using openlayers3. As we have seen the wps builder example in openlayers2 but no example i have seen in openlayers3. Can anyone provide me example for wps ...
2
votes
2answers
26 views

CartoDB latlon change to lonlat

I have this script I am trying to use to search for a value within a CartoDB table. I can't seem to figure out how to reverse the order of the lat & long coordinates so they appear as lonlat... ...
0
votes
1answer
13 views

why my script does not change visible state layers?

why my script does not change visible state layers? window.setVisibleWMS = function(visible, index){ window._blockEvents = true; map.getLayers()[index].setVisible(visible); ...
0
votes
0answers
19 views

Mapbox.js: Bind dynamic popups with featureLayer?

I am building a multiple chloropleth map using v2.2.1 of Mapbox.js with featureLayer. Now I would like to add tooltips with custom content on hover event. This code is working well to set up the ...
1
vote
1answer
25 views

How to get line and polygon points from OpenLayers 3 drawing

I am working on drawing points/segments/polygons on a map that uses OpenLayers 3. The first part I have done draws points, lines and polygons. Now I am trying to retrieve the drawn coordinates in ...
0
votes
0answers
16 views

Open Layers 3 Dynamically or Batch Add Layers from user folder

I would like to dynamically load all layers (kml, for instance) from a user's folder to a group map. ...This likely requires an iteration that searches the folder and adds the layers to the users' ...
0
votes
1answer
40 views

How to let the user resize a Leaflet map <div>

I use Leaflet to display some map. I would like the user to be able to resize the map by dragging its borders as she likes. I would like to do this without additional Javascript libraries, instead by ...
0
votes
0answers
23 views

getting attributes of Openlayer Map by Javascript

I have created an OpenLayers map via the following code: var map = new ol.Map({ target: 'mapdiv', layers: [ new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'sat'}) }), new ...
0
votes
1answer
233 views

Placing GeoServer WMS layer within OpenLayers 3

I have the following basic OpenLayers 3 code that opens a OSM background mapping and this works fine: <!doctype html> <html> <head> <title>Hello PMS</title> ...
0
votes
1answer
196 views

How to submit data to modify feature using applyEdits of ArcGIS API for JavaScript?

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this. I have a form that populates the editable data with javascript. When the ...
1
vote
1answer
233 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
0
votes
0answers
22 views

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
0
votes
0answers
17 views

cartodb featureClick not working

I am trying to get the on click event when a marker is clicked, but its not working at all. Here is my code var list = ...list of codes...; cartodb.createLayer(_this.mapData.map, { user_name: ...
1
vote
1answer
14k views

Uncaught SyntaxError: Unexpected token : when using ajax

I try to call json data from geoserver, but when i try to run it in chrome, it return this following error "Uncaught SyntaxError: Unexpected token :" This is my code, function ...
0
votes
1answer
183 views

OpenLayers Drag&Drop a pin to select position?

Is there an OpenLayers example that allows the user to set a position with drag&drop. I would like to have a pin and set the position after the user drags & drops the pin to a new position.