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

API for Java and JavaScript app integration

Are there any APIs to make calls or integrate JavaScript functions to a Java written application? I have come across Rhino's liveconnect.js, but this is uncharted territory for me, and would like a ...
2
votes
2answers
66 views

Javascript API: How can I change renderer on the fly with feature layer hosted on ArcGIS Online?

I am new to Javascript and somewhat new to GIS (especially web applications of GIS). I'm trying to understand how I can have a drop down menu or html buttons to change which data is rendered in my ...
2
votes
1answer
56 views

SQL query as part of featureClick in CartoDB.js

I am a complete novice at both Javascript and SQL so am learning as I'm going with this! I have made a webpage that shows a map with a layer of points on the left hand side of the page. What I want ...
0
votes
0answers
23 views

Any way to make leaflet.draw polyline finite (i.e. max) distance?

Does anyone have an idea of how I could force a maximum distance when creating a polyline with leaflet.draw? In other words, I would like for the user to only be able to draw a line UP TO 1000 miles. ...
0
votes
0answers
55 views

Adding and removing OpenLayers 3 layers based on a key

I have a map with potentially tens of thousands of areas on it so I draw the map using an ImageWMS layer via GeoServer. I want the user to be able to click on the map and then highlight the area if it ...
0
votes
0answers
55 views

ArcGIS API Javascript Server creating a dropdown menu

I am trying to rebuild this ESRI example with my own feature layers: https://developers.arcgis.com/javascript/jssamples/dataadapterfeaturelayer.html Since I just want a dropdown menu existing out of ...
1
vote
1answer
50 views

Projection Transform in OpenLayers3

I am trying to transform a GeoJSON object of a certain transformation (EPSG:28992) into my current map coordinate system (EPSG:4326). I have been trying to do a couple of things but none seem to work. ...
2
votes
2answers
65 views

How to prevent ArcGIS JS map from failing when using a Bootstrap “hidden” class?

I'm trying to put an ArcGIS Server JS API map within a div with a hidden-sm class in Bootstrap 3, so that the map is not shown on small devices. <div class="row"> <div class="col-md-4 ...
1
vote
1answer
182 views

select tolerance or snapping in OL3 (Openlayers 3)

I'm using openlayers3 in a mobile application , my problem is that I find a big difficulties to select features using my finger even with a touch pen (I have to be more precise in my click or ...
1
vote
1answer
56 views

Automate testing of web app based on ArcGIS JS API

So, there are multiple products that can let you automate testing interaction with web pages. I have used Selenium IDE for some time now and it works great for creating unit tests for HTML elements on ...
0
votes
0answers
25 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
1answer
76 views

Configurable Map Viewer (CMV) - select by drawing polygon around points, then average the values of the points

I have seen this question and have tried the code suggested: Adapting ESRI ArcGIS API for JavaScript Feature Layer With Selection sample for use in Configurable Map Viewer (CMV) But I have been ...
0
votes
1answer
166 views

Line dash not working OL3 (Openlayers 3)

I want to display a dashed line in a vector layer, as the it's shown in the Documentation there is a propriety called lineDash , but it didn't work for me here my code : var iconStyle_line = new ...
1
vote
1answer
92 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. ...
1
vote
1answer
92 views

Leaflet.js add/remove control from Map

I am attempting to combine two fine plugins Leaflet Easy Button and Leaflet Routing Machineand i can't quite get it to work. what I want seems simple enough, I would like to have a button that when ...
2
votes
1answer
25 views

Toggle Layers in OpenLayers does not work

I am trying to make a map in which I can toggle layers on and off in the navigation bar. A simple version of my code is in the following JSFiddle: http://jsfiddle.net/TimLucas/3cqsmc2L/ If you click ...
1
vote
1answer
119 views

Can I plot points on a map using JSON data from a Node.js API?

I am new to the arcGIS JavaScript API. I have a Node API that is providing geographical information in JSON. I have google'd for examples and searched for solutions on this web site. Can anyone ...
0
votes
1answer
40 views

Converting VBScript to JavaScript for labelling in ArcGIS Desktop?

I have a VB script used by ArcGIS 10.2 for Desktop to label different types of streets based on vales present in a specific field. I am a novice at Python but VB and JavaScript are beyond me. I need ...
0
votes
1answer
103 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 ...
2
votes
1answer
95 views

Choosing a platform for developing opensource GIS web application.

I am from a non programming background. I started learning GIS opensource web applications from last 3 moths. Now I am using only notepad++ for writing codes and I am familiar with javascript, HTML ...
1
vote
1answer
46 views

What would prevent ESRI JSAPI AMD modules from being cached?

I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js). For some reason, the AMD modules from the ...
2
votes
0answers
66 views

How to adapt layerswitcher to include listboxs

For my project I needed something that allowed the user to change the application´s layers and the best solution I found was this one layer switcher since openlayers 3 does not support a layerswitcher ...
5
votes
1answer
585 views

ArcGIS Online without basemap

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully ...
3
votes
1answer
98 views

How to reference the ArcGIS Server JS API using RequireJS

When using RequireJS to load a JavaScript library from a CDN, an example syntax is shown at https://github.com/requirejs/example-jquery-cdn: requirejs.config({ "paths": { "jquery": ...
4
votes
1answer
2k views

How to draw Geodesic lines in Openlayers 2?

Hi i want to display multiple lines between two coordinates. i will pass no of lines and color of the line, it has to display like below image. please see the below image.this is my previous post
3
votes
2answers
151 views

ArcGIS Javascript API on Wordpress 4.1

SOLUTION: For everyone interested: turned out the solution was moving all files that use DoJo beneath the jQuery UI files, so that jQuery UI is fully loaded before any DoJo stuff loads. Moved them all ...
1
vote
1answer
248 views

Changing list-item css class using ng-class when mousing over Leaflet Map Markers

I've got a doozy of an ng-class problem. So I have an app with a map/markers on the right and a list-item menu on the left with info about the markers (like Yelp or Foursquare). With some of my ...
2
votes
1answer
69 views

OpenLayers3: setCenter seems not to work in jsfiddle

I'm trying to replicate an example from the OpenLayer Examples, specifically this one: http://openlayers.org/en/v3.0.0/examples/animation.html The problem is that in my jsfiddle I cannot get all the ...
0
votes
0answers
58 views

Getting coordinates perpendicular to AB

I noticed that Google Mapmaker has a function that when you hold shift when drawing a shape you can see the perpendicular line. I want to recreate this function to use in the google maps api v3. So ...
2
votes
1answer
147 views

Time Slider in CartoDB

I once again have a question regarding this map project I'm working on. I'm trying to add a time slider to my CartoDB map, and the slider appears, but instead of displaying the correct dates and the ...
1
vote
1answer
38 views

Is it possible using JavaScript and cartodb.js to get the layer's total amount of visible data in a certain moment?

I am working with a torque layer and I would like to know for each moment the amount of data points shown in the visualization.
3
votes
1answer
141 views

How to get/pass token with ajax call to secured ArcGIS REST Service

I have a web map application that was written in HTML & JavaScript (using the ArcGIS JavaScript API). It desplays a few services that reside on an ArcGIS Server (10.2). It also has a custom legend ...
0
votes
0answers
127 views

Error with GeoExt.data.WMSCapabilitiesStore + gx_wmslegend

When I use this code (code in bold means for comparison between codes): // create a new WMS capabilities store store = new GeoExt.data.WMSCapabilitiesStore({ url: ...
-1
votes
1answer
40 views

How to remove WMS layer from OpenLayers

How to remove added WMS layer from OpenLayers ? I have seen a link here.But I did n't get clearly. Please help? I have added the WMS layer as follow <script ...
0
votes
1answer
154 views

Accessing organisational webmap using downloaded Basic Viewer of ArcGIS Online?

I have downloaded the Basic Viewer of ArcGIS Online (AGOL) to my web- and arcgis server within my organisation. Now I want that copied basicviewer to access a webmap on agol that I made accessible to ...
4
votes
3answers
4k views

How do I determine the center point of several features in OpenLayers?

I have several polygons being drawn on a map, usually representing a country or province or state. Depending on some chosen data, different regions may be selected, so what I was hoping is that ...
5
votes
3answers
877 views

Create buffer around point in LeafletJS?

I am using LeafletJS. I want to create buffer around point. after Selecting a point buffer radius will be specifed by user in feet. After searching of awhile I found this link of JSTS. does JSTS ...
2
votes
1answer
54 views

Create Chart from Query Task

I need to create a chart from the result of a query task using Esri JS API. Note, the chart does not have to be created with Esri API, but the query runs in that. The result is written to the DOM ...
4
votes
2answers
10k views

Calculate bearing between two decimal GPS coordinates

I'm building a virtual tour application that uses custom panoramas in conjunction with Google's StreetView service. With StreetView, you can have 1 to n links at each particular location to move to, ...
3
votes
0answers
54 views

What is the openlayer.js alternative of unloadinvisibletiles of leaflet.js

I am using open layers with a tile server. I want to load maps while panning and destroy the loaded region when out of screen (Alternative to unloadinvisibletiles of leaflet.js) How am i suppose to ...
0
votes
1answer
25 views

PyWPS output created but not accesible by the Javascript client

The good thing: I've a working PyWPS process. The bad thing: I cannot access the output using the PyWPS Javascript client. What I did. I created an PyWPS python script with one LiteralInput ...
1
vote
0answers
146 views

Disable doubleclick zooming in Openlayers 3

I've searched for it on the entire web and finally I found on artamstrong.com how to disable a single feature like "mouseWheelZoom". Here is how double click zooming in Openlayers 3 can be disabled: ...
6
votes
1answer
88 views

Mousewheel event being locked by map

I've got a tabbed UI on my web page, the last tab is an arcgis javascript map built with their API. The problem I'm having is that just adding the map and all of the esri / dojo libraries to the page ...
5
votes
2answers
75 views

Access geojson from github in leaflet

I am new to json, github, and leaflet. But I am trying to create a simple application which will render my points which are in geojson up on github. From everything I have read this should work. ...
0
votes
0answers
23 views

'select' listener in xtype combo, scope issue with IF?

I wonder if this is a problem of scope. The thing is that I select an option in a xtype combo (extjs3.4) and that selection at first can be read outside and inside an if section (attached image). Now, ...
0
votes
2answers
230 views

OL3 Style function

I am attempting to write a style function within an open layers 3 application that will change the fill color of a circle based on an attribute from a geoJSON piece of data. I have looked over stack ...
0
votes
1answer
54 views

Legend in GeoExt.tree.LayerContainer

Using the code below in this jsfiddle example: tree = new Ext.tree.TreePanel({ renderTo: "tree", root: new GeoExt.tree.LayerContainer({ text: 'Map Layers', ...
1
vote
0answers
34 views

Run a locator task

I'm working with ArcGIS javascript api and I have a search function that finds a persons address by name and sorts it into a table inside a modal popup. It returns multiple people with the same name. ...
4
votes
1answer
80 views

How to use external CartoCSS/mss within JavaScript?

I am using CartoCSS to style features in a run-time CartoDB layer (as opposed to a pre-made visualization) but it gets messy doing this within JavaScript: sublayers: [{ cartocss: '#initvisitedfws ...
1
vote
0answers
42 views

styling wms layer using sld in openlayers3

i want to style wms layer using sld in openlayers 3.written part of code shown below.but not any console error messages are shown and not applied styles to layer..... var sld = ...