JavaScript is a prototype-based, object-oriented scripting language that is dynamic, weakly typed and has first-class functions.

learn more… | top users | synonyms

0
votes
1answer
58 views

What must be learned to build 3D web map? [closed]

I wish to build a 3D web map based on Silverlight or JavaScript. I cannot build 3D in Silverlight. What I should do then? Should I learn "Balder" or OpenGL or what? I must do it before 09/2014. Can ...
0
votes
0answers
35 views

Arcgis Javascript code InfoWindow template

I am creating an InfoWindow in javascript code like following. var htmlForms = "<span>City ID: ${CITYID}</span>"+"</br>"; htmlForms += "City Name: ...
1
vote
0answers
56 views

How to use right-click to finish drawing a Polygon in OpenLayers?

I'm using OpenLayers 2.13 and the DrawFeature control. By Default, the Polygon is completed, when you double click. Some of our clients are requesting that we allow the mouse right-click, to finish ...
1
vote
0answers
21 views

How to hide infoWindow while using measure tool and showing it back after using it ArcGis JavaScript API [duplicate]

I have an infoWinfow set on the click event of the map. I want to disable this event when I'm using the measurement tool and then enable it back after the measurement tool is used. So far I've done ...
2
votes
2answers
191 views

CartoDB- Passing selected features bounds to map center parameter (Zoom to selected features)

Looking to build a light-weight viewer for some data we have hosted on CartoDB. I'm looking to have a user input their address into an input, pass a query to CartoDB and have the map zoom/pan to the ...
2
votes
0answers
202 views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
0
votes
1answer
53 views

esri map popup problem [closed]

My map works fine. Popup works fine. For some reason, the bottom of the popup window has some layout issues. I have all the resources included. script: dojo.require("esri.map"); ...
0
votes
0answers
65 views

Arcgis custom spatialreference and geolocation problem

I have a tiled map service layer that has custom spatial reference. This is url of map. Spatial Reference: ...
1
vote
0answers
221 views

Leaflet Event Craziness: jQuery click events don't propagate to L.DomEvents

I noticed that calling .click() on jQuery selected DOM elements in Leaflet ( such as anchor icons ) will not do anything -- the click event isn't propagated to the events created with L.DomEvents. For ...
2
votes
1answer
93 views

How to join USDA SSURGO soil table data to features in QGIS?

I am trying to make a soil map using QGIS. The only problem is that I cannot join table data to features in QGIS. In ArcGIS for Desktop you just open the folder and then join the tabular table ...
2
votes
3answers
139 views

Simple javascript viewer for ArcGIS Server data

I would like a simple javascript viewer which will allow end users to do the following in their browser: Add layers from arcgis server by clicking an "add data" button See attributes with an info ...
1
vote
1answer
267 views

Export KML from points plotted in javascript Google Maps API?

I want to export a KML file from points plotted in Javascript using the Google Maps API. Is there a way to do this? The user logs in and checks Google Maps, then plot points on the map and finally ...
1
vote
1answer
105 views

Openlayers Vector Layers eventListeners: how to specify different data without defining multiple layers

I have a map. It has two origins, and two destinations. The code for one origin is here: vectors_origin = new OpenLayers.Layer.Vector("Origin", { eventListeners:{ ...
6
votes
1answer
346 views

Using Tilestache and Leaflet To Display Rasters In Native Projection

I have a collection of old Idaho state highway maps in GeoTiff format. The projection that these maps have been georeferenced in is a transverse mercator projection, called IDTM83 (Idaho Transverse ...
0
votes
1answer
470 views

Go to the URL when clicked on Leaflet marker

I want to implement marker click event so when user click on marker it goes to url. Url is written inside an array (a[3]). However, this is my code which doesn't work, it always goes to the link of ...
2
votes
2answers
225 views

json to shapefile in javascript

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment. Do you know or ...
4
votes
5answers
668 views

How to get a Leaflet app with a big GeoJSON file to work on mobile devices?

I have a leaflet app which displays a GeoJSON file as a layer. It works fine in the web browser. On the mobile browser it starts up, but quits after panning around on the map. I think the reason for ...
1
vote
1answer
93 views

Openlayers: Making the map move with moving vector layer (airplane) on map

So currently I have a map that has some plane data. There is a setInterval function that updates the plane data every 5 seconds, making the plane move from point to point. That is working well. ...
0
votes
0answers
36 views

OpenLayers feature label is not centered

I have a problem with OpenLayers feature label. When I add label to the feature feature.attributes = { fullName: name, favColor: '#880000' }; and show feature on the map, then The label ...
0
votes
0answers
127 views

listerner for multiselect in ExtJS

I'm using ExtJS 3.21 Version. Can we provide listerners for multiselect in ExtJS? items:[{ fieldLabel: 'Vehicle List', xtype: 'multiselect', autoScroll:true, name: ...
1
vote
0answers
190 views

Google map did not update new geolocation when I moved the marker to new position

This is my google map code. I'm trying to update new latitude and longitude when i moved the existing marker to new position. But I don't understand why the following google map code is not updating ...
2
votes
1answer
116 views

How to flash a graphic in JSAPI using AMD

With the code below I was hoping to flash the selected polyline, however no success. function flashResults(featureSet) { alert("flash"); //remove all graphics on the maps graphics layer ...
0
votes
0answers
33 views

Ob_tran in proj4js

I am trying to implement an OpenLayers/proj4js-based application based on this projection: +proj=ob_tran +o_proj=eqc +o_lat_p=90.0 +o_lon_p=0.0 +lon_0=180.0 +R=57.2957795131 The aim is to allow the ...
1
vote
2answers
532 views

How to project pixel coordinates in leaflet?

I am trying to create a map based on an image which is 16384x16384 px, but I would also like to add markers at specific locations using pixel coordinates of this given image. I created a tile layer, ...
2
votes
0answers
101 views

How to get Google Street View panoramas on the same street as the requested address?

The Google Maps API geocodes an address to a point. I can use that point to find the nearest panorama (street view) image. I can then determine the heading based on the two points and show the ...
2
votes
4answers
352 views

What web mapping libraries are suitable for indoor maps?

I am looking for a custom mapping library but not to display an actual geographical area but to display a custom floor-plan. I have been looking for a while but most of the solutions that I found are ...
0
votes
2answers
145 views

Moving ArcGIS JSAPI Basemap Gallery Widget down 10px when opened

How can I move the Basemap gallery 10px down from its original position when it's opened. The basemap gallery sample, I am referring can be found here: ...
1
vote
1answer
131 views

Using ECQL filter on user form using GeoServer and OpenLayers

I know this is more of a JS question (skills of which I am inadequately inept) but it is using OpenLayers and GeoServer. I am trying to apply a filter with a user form on a Layer, but am not sure ...
1
vote
0answers
235 views

Making Use Of Railway Route from Google Maps API

I have a specific requirement where in i have to display or highlight only railway stations in the map rather than the whole map. How can this be achieved.?. Please find the below code that i have ...
0
votes
0answers
131 views

How to convert Ext.data.TreeStore loading from file to loading from .net webservice?

I have a Ext.data.TreeStore which read data from text file : this.store = Ext.create('Ext.data.TreeStore', { model: "GeoExt.data.LayerTreeModel", proxy: new Ext.data.HttpProxy({ ...
0
votes
0answers
39 views

How do you set the TimeZone for a feature layer in ArcGIS JavaScript?

The author of this question says: Esri recommends that databases are in UTC time. And if I’ve got this right, unless you set a time zone in your layer, you are entering a date in a date field ...
0
votes
0answers
72 views

Editing a stand-alone table in ArcGIS API for JavaScript

I am new to scripting and the API, and it would be good to have a clear idea of what to look into for this task. I am trying to let users add information to a table (but not edit that table in any ...
0
votes
0answers
36 views

Why GetFeatureInfo does not work? [duplicate]

I´ve problem with getfeatureinfo code. Appears only: loading please wait. function setHTML(response) { document.getElementById('nodelist').innerHTML = response.responseText; }; ...
2
votes
1answer
431 views

Help with getting the coordinates of a point updated using ESRI JS API Editor

I've been working with ESRI's javascript API for about a week and finding that somethings click while other things are still a mystery to me. I've already created a simple web map that loads an ...
1
vote
1answer
301 views

OpenLayers is not defined while accessing over the html and js

The above is my working directory, all html files are under WebContent folder and the problem is that when all the code is written in a single html file working fine. If I split the OpenLayers code ...
4
votes
2answers
187 views

Adding control to wfs layer disable panning and zooming on double click

I can zoom and pan wfs layer when I don't have added control but I can't pan the map or zoom the layer with double click when I add a control to map: code for control is : var select = new ...
0
votes
0answers
157 views

OpenLayers LineString: Not displaying the line (array of points)

I'm perplexed as to why tail_path is not drawing the line (can't see anything on the map) but the alert seems to be returning the correct data. var path_travelled = new Array(); var path = ...
0
votes
1answer
60 views

How to get bbox from geolocate?

I am using geolocate to zoom to the users location. Afterwards I am trying to get the bbox of that area. However the geolocate function is for some reason always executed last, so I don't get any ...
3
votes
1answer
1k views

problem adding pop-up to GeoJSON layer in Leaflet

I'm new to working with the Leaflet API and am running into trouble with creating popups for a GeoJSON layer. I've looked at the following post as a reference and am still having difficulty: binding ...
2
votes
1answer
104 views

Print FeatureLayer labels in Esri JavaScript API 3.5 and earlier

I have a need to implement labels on features in a FeatureLayer in version 3.5 if Esri's Javascript API. The labels are from a field returned by a REST feature service. I can't move to 3.7 for various ...
4
votes
1answer
191 views

Why should I use the AMD style deceleration in ArcGIS JS API?

It seems to me like this: var point; require(['esri/geometry/Point'], function(Point) { point = new Point(); } does the same thing as: var point = new esri.geometry.Point(); Is there any ...
3
votes
1answer
69 views

Use a Tiledmap service as basemap instead of an Arcgis.com map in AMD style coding

How will I define a arcgisTiled map service as the base map (instead of “topo”) as against using arcgis.com map services while defining a new map in AMD style? map = new Map("map", { ...
1
vote
0answers
29 views

Using AttributeInspector to Create New Record

This is a follow up question to another questions I posted earlier: Adding Record to Related Table using JavaScript API Without repeating too much information from that previous question, I was able ...
6
votes
2answers
105 views

How can I zoomToExtent and then zoom out?

I use openlayers 2.12 I use HTML5's geolocation API to get the coords and then I insert them in a layer as feature (point). After that, I zoom in , since the layer has no other feature. ...
1
vote
1answer
21 views

Link two Google Earth frames to mirror each other

I have a webpage with two Google Earth Frames side by side. Is there a way to link the two together so when I zoom or pan in one frame, it is mirrored in the other? Thanks.
2
votes
1answer
135 views

ArcGIS JS API - Can't draw results of Query Task

I have an ArcGIS JavaScript map that I'm trying to use with a Query Task. The query runs fine on the server side and the proper geometry is returned. Then, I draw the feature as follows: var features ...
1
vote
0answers
57 views

How can i add to DB new created Polygon?

i'm new to LeafLet and i'm trying to understand power of LeafLet for mapping.. Question is simple, let's say i've created a new object(e.g. polygon) map.on('draw:created', function (e) { ...
2
votes
1answer
83 views

Adding Record to Related Table using JavaScript API

I looked and didn't find this question so hopefully it isn't a repeat. I am new to the JavaScript API and just started creating a web application where the user will enter maintenance records for a ...
0
votes
1answer
236 views

Custom ArcGIS GraphicsLayer (JavaScript)

I am working on an application that will retrieve data from various sources and construct ESRI GraphicsLayer objects from the data and display it on a map. I have created custom FeatureLayers before ...
3
votes
1answer
734 views

How to Use Custom Basemaps with BasemapToggle widget?

I'm trying to upgrade my app from version 3.3 to version 3.7 of the JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget. I have two custom basemaps that I want to ...