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

How to force the urlUtils proxy perform only POST requests

How can I force the urlUtils to use only POST requests. I a using it as shown in the following block described also in the how to use proxy section, and I have noticed that some times (maybe when ...
-1
votes
1answer
11 views

combining mbtiles and getZoom to visualize with Leaflet

I have exported MBTiles as single file for every zoom scale. Now I can add map manually call them with mbtiles.php server. But I want to accumulate it in one and get the mbtiles file on zoom scale ...
1
vote
0answers
16 views

How to Load SQL Geometry Data on OpenLayers3?

I am New in OpenLayers 3. I have to load Geometry data from sql to my OpenLayers map. This is my code : var tileLayer = new ol.layer.Tile({ source: new ol.source.MapQuest({ layer: 'osm' }) }) var ...
0
votes
1answer
26 views

Mapbox.js setStyle differently for each element

I'm using geoJson in a featureLayer so I can use the setFilter-Function. My question is: How can I use the setStyle-Function and give Elements with different properties different colors? My Code: ...
0
votes
0answers
13 views

OpenLayers get feature from layer at viewport position

How can I get a feature from layer at a viewport position, in openLayers 2.12. For example something like... Layer1.getFeatureAtPosition(x,y)
1
vote
1answer
22 views

10.3 js callback appended to query call not working

I have two 10.3 ags servers that i thought were the same. But on one i can send this request to the rest api endpoint and it does not work: ...
0
votes
1answer
37 views

Wrong Terrain Height Information

I am getting negative elevation values from CesiumTerrainProvider (stk-terrain). For few locations the below code is giving negative elevation values, which are wrong, as I have checked those values ...
0
votes
1answer
45 views

How to run turf.js on desktop

Morgan Herlocker answerd in another question, that he uses turf.js on his desktop with node.js. I'm really new to GIS and won't become pro for all hacks. My need is: having a geojson with a polygon ...
0
votes
0answers
21 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 ...
0
votes
0answers
48 views

How to generate exportable report from web map (ArcGIS JavaScript API)

I would like to build a web map using ArcGIS JavaScript API containing 1 layer of polygons & 1+ layers of points (or lines) contained within said polygons. I want this to be enabled with some sort ...
0
votes
1answer
36 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> ...
1
vote
2answers
47 views

No popup on map if no feature is selected

I've got a webmap showing data coming from a Geoserver instance. With better.WMS.js I made it possible to display popups. Everything works nice except that the map shows popups too where there is no ...
1
vote
1answer
38 views

Google Maps Javascript and PHP

I try to make a menu bar with icons which show the same icons in the map when clicked, for example hotels or bars. I made a form with radio buttons for choose and click submit. This goes to PHP, ...
0
votes
0answers
19 views

Shapefiles from PostGIS to Overlays in Legends

How do I make shapefiles from PostGIS legend overlays in OpenGeo. I've seen a couple of examples in GeoExt but they do not really address my problem.I have set this shapefiles in config section on ...
0
votes
0answers
20 views

Leaflet Magnifying Glass and Opacity Controls

I have been looking at Leaflet as an alternative to Open Layers 3 in the event that I need something more lightweight, but I am running into a problem when trying to integrate some of the generously ...
0
votes
0answers
19 views

Heron 1.0.5 - can't use measurelength tool

if there is somebody here using the Heron-MC framework in the latest version 1.0.5 and can answer to my problem.... When looking at the examples of Heron v1.0.5 then it looks like I simply have to ...
0
votes
0answers
6 views

How do I add the sanitizer option to mapbox.js v1.6.2?

I believe this is the newest version of mapbox.js sanitizer var gridControl = L.mapbox.gridControl('grafa.hack22fp', {sanitizer: function(x) { return x; }}) .addTo(map); I need to add it to ...
1
vote
1answer
44 views

How can I make an OSM map without icons and labels?

I want to create a web application that include Open Street Map . I use OpenLayers library to create map , but now I want to create map without icons like hospitals,coffeshop and other icons. This ...
0
votes
0answers
29 views

Dojo TypeError for ArcGIS Javascript API App

I recently updated the app to the 3.13 framework, and now am getting the following error when I load my application. Uncaught TypeError: Cannot read property 'missingMessage' of undefined Chrome ...
0
votes
1answer
20 views

Geocoder's autocomplete only shows 26px in Leaflet

I've got a map on GitHub (I removed everything that isn't needed). The problem is that the geocoding widget doesn't show the search results completly: I guess this happens due to a custom zoom bar ...
0
votes
1answer
14 views

Converting js time stamp to work in CMV application that read field values

This might be a somewhat basic question but I cannot seem to get the logic to work. I am having a search widget search through dates to find similar records of what an asset was last serviced in the ...
-2
votes
0answers
13 views

Javascript from Geoportal API IGN

im totally newbie in Javascript, im supossed to correct it somehow but i have no idea how and what to change. Thank you for the help Hydrosphere div#viewerContainer { width:600px; height:400px ...
0
votes
0answers
35 views

OpenLayers.Layer.Text displays icons at 0,0

I'm using Text layer from OpenLayers 2.13.1 to display a list of points on the map. The problem is that icons are always placed at point 0,0 (Gulf of Africa) instead of at their own positions. I ...
0
votes
3answers
25 views

Layer doesn't turn back on after clicking in OpenLayers 3

I have the following code. I have setup a default function of turning the showing all my layers and on click the layers disappear. But they don't turn back on when I click on them. So what have I done ...
0
votes
0answers
21 views

Batch filtering of fusiontable data

I am designing a web page where users (up to 20 at a time) will interactively filter through a large number of overlays (20 overlays, each with 1k-3k items in them, including markers, lines, and ...
1
vote
2answers
42 views

Checkbox becomes unchecked when map pans

I have a table of contents that is used to toggle visibility of layers. I also have a dialog box that populates with the visible layers so that the user can pick from the visible layers what layer ...
0
votes
0answers
44 views

How to convert x,y to longitude, latitude in Cesium?

Actually I have divided a line into 90 parts. I know the longitudes and latitudes of end points, and for rest of the intermediate points I know x and y. I have to find height for those 90 points and ...
0
votes
0answers
26 views

allow client to upload Layers to Openlayers 3

I want to allow the clients to add vector layers in form of a geojson to openlayers 3. It should look like in this fiddle . I know how to add multiple layers but I want the client to be able to add a ...
0
votes
0answers
66 views

Using OpenLayers example in OpenStreetMap Wiki?

I'm trying to work my way through this wiki page to add OSM into a OpenLayers map I am working on, however I cannot even get the first example to work. I have downloaded OpenLayers V3, copied the ...
1
vote
1answer
25 views

Passing Arguments Between Widgets with Mixedin Templates - CMV Builder

I am attempting to manipulate a custom widget (Table) I built. I first initialize the widget in the viewer.js class and attach it to the 'sidebarBottom' pane in the viewer. Since the 'Find' widget is ...
1
vote
1answer
65 views

Open Layers 3 Dynamically Add Layer from folder contents

I am new to Open Layers and have searched far and wide trying to figure out how to programmatically add layers with a default set of parameters from a selected source path, but Google has not produced ...
0
votes
0answers
21 views

Google Maps measure time to render markers

I want to measure how much time it takes to render markers on my map. I have a vector layer with data, like this: var vectorLayer = new google.maps.Data({map: map}); // add features to vectorLayer ...
1
vote
1answer
42 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
0
votes
1answer
45 views

toggle visibility of a Layer in Openlayers 3(!) with a Checkbox

I have some vector layers on top of a tiled layer and a checkbox for each vector layer. I want a layer to be visible if it's checkbox is checked and vanish if it gets unchecked. I tried to call a ...
2
votes
2answers
71 views

Add a legend in an ArcGIS Javascript API

I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and ...
1
vote
1answer
29 views

Can I style a feature point based on its id?

I wonder if its possible to style a feature point which belongs to an Open Layers vector layer with points by using its id. For example I have in this layer 3 points with ids: a,b and c. Right now ...
2
votes
1answer
62 views

Ol3 displaying a vector layer

I have GeoJson that happily displays on GeoJson.IO that I am trying to display on a Vector Layer on an Open Layers 3 Map. The GeoJSON is in EPSG:4326, the Map is in EPSG:3857. My Code is: view = ...
4
votes
1answer
173 views

Convert from WGS84 to Google Mercator

I want to convert longitude and latitude coordinates from WSG84 to Google Mercator. The following code-samples show my coordinates in a KML/KMZ file and where I need the coordinates in the javascript ...
0
votes
0answers
42 views

Getting OpenLayers degrees rotation to point right way?

I am working on a fairly simply proof of concept for a tutorial to blog. At the moment it is simply to show how a SatNAV type functionality could be achieved in a browser - However I cannot for the ...
1
vote
0answers
53 views

ESRI JavaScript API Web Application and SQL Queries in ASP.NET?

My workflow (and security restrictions) for a new html/javascript based web application is making me think that I could program an ASP.NET application, inside which I load the 'map' and the 'legends' ...
0
votes
0answers
24 views

Custom routes and nodes for Leaflet

This is probably far-fetched to ask but let's say you have a custom map using Leaflet. For me, my map is over here. As you can see, it's a neatly-designed yet clear map that is 30,000 pixels wide. ...
0
votes
0answers
69 views

ArcGIS JavaScript API JSONP request

I am trying to add featues to esri.layers.FeatureLayer from response of JSONP request with esri.request. Interestingly I have right response and all features are perfectly shown on the map,BUT I get ...
0
votes
0answers
36 views

Extend/change Leaflet Marker class to put DivIcon markers in another map pane

Leaflet uses different panes for different content. Markers are in the markerPane div and Popups are in the popupPane. I find the DivIcon class a lot easier to use than the custom layer because of ...
0
votes
1answer
29 views

Openlayers Vector Layer Features are empty even after DrawFeature executed

I am new to Openlayers and Javascript. I am creating a web map that will allow users to draw shapes on top of a base map. I'm trying to figure out how to access the coordinates of the shapes that are ...
0
votes
1answer
40 views

Leaflet: Map focus issue after enabling a custom ZoomToArea control in Firefox

I'm trying to add a Zoom-to-Area control to Leaflet by extending the built in Control.Zoom plugin, but I'm fighting some "map-loses-focus" issue that affects only Firefox. The function works as I ...
1
vote
0answers
14 views

Narrow viewport => not showing map in browser?

I have a webapplication using the arcgis javascript API and it works great. Unfortunately I ran into a small peculiarity: If the viewport for the map is smaller than 930 pixels it refuses to load my ...
0
votes
1answer
67 views

gxp_googlegeocoder add to default geoexplorer viewer

I have an opengeo 4.1 running on my webserver (windows). I use the default geoexplorer viewer to share my maps and I am very happy with all the default functions, however I would like to add the ...
0
votes
1answer
46 views

What would cause Dojo in later versions of ArcGIS Javascript (v3.12) from working in Internet Explorer?

On my testing machine I experience no problems with using http://developers.arcgis.com/javascript/samples/featuretable/ but if I run the same example on my client's machine I get "'require' is ...
0
votes
1answer
28 views

OpenLayers measure map rendering time

I am using OpenLayers version 3 (answers with ver 2 are also OK) and want to measure how long it takes to render the vector layer. So, I have a vector layer with features: var vectorLayer = new ...
1
vote
0answers
27 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 ...