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

Raster overlay with different projection in Google Maps

I have a map created with Google Maps. I want to overlay over some data I am downloading dynamically, covering the whole world. That data is a matrix as follows: 1024 values for the longitude ...
0
votes
0answers
11 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 ...
1
vote
1answer
20 views

Webmapping js library with best support to WFS-T

I've tried to use WFS-T in ol3 but it was really a hard task, it seems that WFS-T is badly undocumented feature and it's much complicated to implement, and i'm looking for recommandations concerning ...
1
vote
0answers
8 views

How to add pixels offset based on resolution

Currently I'm displaying popups on my map using this utility by Matt Walker. My code is something like this: map.defaultPopup = new ol.Overlay.Popup({ panMapIfOutOfView: false }); ...
1
vote
1answer
15 views

Adding hyperlinks to Leaflet polylines created via Leaflet.Draw?

[Cross posting from StackOverflow as I realized this may be a more specific community for this] I'm using Leaflet.Draw, and I want to allow the lines that I draw to have hyperlinks in them so that ...
0
votes
0answers
11 views

browser crashes when loading legends at startup

After much perusing for solutions, I've decided to post my problem as a question. I'm trying to load the legends that are built into the ArcGIS Service Layers I'm using. I'm loading about 7 Dynamic ...
0
votes
0answers
14 views

Remove CQL_Filter from Open Layer Map

I'm using Open Layer to show my map with some layers. I've a field where I can add some filters with CQL code. I can successfully add a new filter to my map, and only the right points appear in my map ...
0
votes
1answer
20 views

Change Header/Background Color For Attribute Popup Window (JavaScript Web AppBuilder)

After creating a web app and downloading it using the JavaScript Web AppBuilder for ArcGIS (Developer Edition), I was able to change the site header and widget popup color schemes via an existing ...
0
votes
0answers
12 views

Move Zoom In & Out Button in ArcGIS JavaScript Web AppBuilder (Developer Edition Download)

After creating a web app in ArcGIS Online, I downloaded the app using the Web AppBuilder for ArcGIS (Developer Edition). Several folders, .json, .html, .js, and .css files are contained within the ...
0
votes
0answers
20 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
17 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
17 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
28 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
14 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
23 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
44 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
49 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
24 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
43 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
51 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
20 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
22 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
45 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
30 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
22 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
16 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
36 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
34 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
22 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
45 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
46 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
1answer
38 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
68 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
30 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
71 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
23 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
50 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
73 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
30 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
67 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
178 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
46 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
59 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. ...