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

MapServer with OpenLayers: Map is Pink, Trouble Displaying Layer Correctly

Having trouble using a mapfile with an html/js file(openlayers) together. Have a working example but can't seem to replicate it. Can also view the gist of the 2 files here The piece of code in ...
1
vote
0answers
14 views

How to find direction points using Google Maps API 3?

I am drawing a route in Google Maps. I have passed the start point, way points and end points. My route is drawing correctly. I am using Google Maps API 3. request = { origin: originAddress, ...
3
votes
2answers
35 views

OpenLayers: Possible to show zoom level?

Been researching this for a while and nothing has come to fruition. Best I could find was: OpenLayers.Control.ZoomStatus = OpenLayers.Class(OpenLayers.Control, { autoActivate: true, element: null ...
1
vote
1answer
15 views

using arcgis geocoding service and custom base map

I am looking javascript samples in here. I am searching some street by search bar. But not zooming to street, it only viewing city. I have a custom tiled map service layer in my server. Can I use this ...
0
votes
1answer
29 views

Hiding Rest Service Url in Javascript

While users using my application, they can view resource from browser and see my arcgis rest service URLs. So If I use token based security, security token can view. Can I hide this from users?
0
votes
0answers
11 views

How to search for points inside the boundaries of an area? [duplicate]

I have a list with points on a map,each one has co-ordinates(longitude,latitude). I want to make a search on the map selecting an area,e.g. show me all points inside London area.How is this possible ...
0
votes
0answers
13 views

Altitude from KMLs in Openlayers

I have a KML with points representing the flight path of a small plane. Opening the KML, it looks like (up to style related stuff): <Point id="Point"> ...
1
vote
1answer
32 views

Hover on Airport Data using OpenLayers + Mapfile

I need to create a simple hover using openlayers for worldwide airport data. I'm thinking maybe the associated address, maybe a picture in regards to the airport, ...anything really. It's just an html ...
0
votes
2answers
26 views

How to drag a point and then use savestrategy in OpenLayers

Im trying to use the wfs-t in openayers using the savestrategy. I have created a savestrategy and it works when I for example uses the DrawFeature Control to add a point. A new point is added to the ...
2
votes
0answers
58 views

ArcGIS local server using javascript api still does http gets to services.arcgisonline.com (internet)

We have setup a local server hosting the ArcGIS server software (10.1). We installed the ArcGIS JavaScript API on the same local server. Our goal is to supply maps when the client has no internet ...
0
votes
1answer
29 views

How to get the last drawn point for a Geometry in openlayers

I wonder if I can get the position of the last point for a geometry in openlayers? For example, I have an OpenLayers.Geometry.LineString, how to get its last point? Clarification in the comments: In ...
1
vote
2answers
55 views

converting UTM - Decimal Degrees with javaScript or using a web service

I am creating a wildlife survey form that has a field where users enter location. Users will be able to enter location using a map (i.e. draggable pushpin) or by manually entering lat/lng. My clients ...
1
vote
1answer
47 views

OpenLayer and not well formed Json

I am learning to use GeoExt and OpenLayers, and I want to reproduce one of the examples given at the geoExt website. The script call a GeoJSON containg the position of Alp summits. I downloaded it via ...
3
votes
1answer
37 views

How to programmatically change the timeExtent of a Map & update the timeSlider?

I am developing with the ArcGIS JavaScript web API and ArcGIS server 10.0. I have a time-aware layer in in my map, and also a timeslider. The full time extent of the map is a year, with data every ...
0
votes
1answer
33 views

Can I modify a layer which is uploaded by myself?

I first uploaded a geojson type polygon to the OpenLayer. Can I still edit the feature of this layer? Here is the code I am using: (It can upload the geojson layer but can not edit it) var ...
-2
votes
0answers
84 views

ArcGis Javascript API vs OpenLayers [closed]

I would like to know the pros and cons of the API: Arcgis Javascript API OpenLayers A very detailed comparison of the two services are capable of and how best to work with, which is the best choice. ...
0
votes
1answer
46 views

Loop over features of a GeoJSON object from CartoDB

I have just little knowledge about HTML and JavaScript. Nevertheless I was playing, copying and pasting around with Leaflet and CartoDB. I want to display the features GeoJson in a table. This is ...
0
votes
0answers
15 views

The transformation of coordinates [duplicate]

I have a text file that contains the coordinates of the species --> 55 66.738603, 51 49 48.116408, and I need to convert them in kind: 55.789, 48.678. (dd^mm^ss dd^dd^dd). Are there services or ...
-3
votes
0answers
24 views

openlayers and coordinates tokens from the database [closed]

var strategy = new OpenLayers.Strategy.Cluster({ distance: 20 }); var vectorLayer = new OpenLayers.Layer.Vector("Overlay", { strategies: [strategy], }); ...
0
votes
1answer
37 views

How can I clean up this OpenLayers code by correctly doing a transform or projection, for an array of features?

I have some features I've created via some Kml data. Now, to display these features on a Google Map, I need to project them from 'EPSG:4326' to 'EPSG:3857'. This works great. Now, i need to convert ...
0
votes
0answers
47 views

Openlayers Vector Feature label not Visible in IE 8 but visible in Google Chrome…?

I have created a WEB MAP using Openlayers-Geoserver-Postgis.... The Label of one of the Vector feature layer is not visible in Internet Explorer 8(IE 8) ,but clearly visible in Google Chrome ...
1
vote
1answer
117 views

Mapping latlng values to a point on a HRAP grid

I have a copy of some NWS rainfall data loaded into a PostGIS database. Given a lat lng point, I want to find the rainfall for that given day. The original data are in XMRG format and projected ...
1
vote
1answer
37 views

Probleme with WFS protocol in OpenLayers

Sorry for disturbing. I know my problem look common, but I really don't know what to make. Here is my code for getting a WMS layer in OpenLayers from Geoserver. var wfs2 = new ...
0
votes
0answers
22 views

Is there a JavaScript SDK for Vehicle Tracking?

Does exist a JavaScript SDK for Vehicle Tracking? Like this:Map Suite Thanks.
-2
votes
0answers
41 views

open layers popup questions plz help me [closed]

Please help me. http://dev.openlayers.org/sandbox/CloudAmber/Trunk/GooglePopups.htm I want to include these Google-like popup's functions in my code (below). <!DOCTYPE html> <html> ...
1
vote
2answers
51 views

Apply styles to WMS layer

I am working with OpenLayers (and GeoServer) and I am showing a WMS layer with countries in a map. Each object (country) in the layer has an attribute called NAME (the name of the country). I created ...
3
votes
1answer
97 views

Problem with a large number of markers on an OpenLayers map

I have created a map using openlayers. On this map I place markers. Coordinates of the markers are taken from my database (sqlserver 2008), the quantity of markers is about 1500. The map is displayed ...
0
votes
1answer
41 views

Does leaflet support KML Ground Overlays?

I found an example showing KML overlays at http://harrywood.co.uk/maps/examples/leaflet/kml.html but it only plots vector layer using polygons. Is there any way to plot Ground overlays of KML (like ...
0
votes
0answers
37 views

problem marker and popup

Displayed not correctly popup when clicking on the marker, the popup appears to the left in the corner of the screen and need to be near the token display. Help( here is my code: var map; var ...
0
votes
1answer
51 views

Different Styles Within Vector Layer

Is there any way to configure OpenLayers styling method? I have a vector layer and I would like to style the features depending on a value of a flag variables, so I can't use rules. Lets say I have ...
0
votes
1answer
43 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
0
votes
1answer
48 views

How to draw a line between markers in openlayers

how to draw the line between markers, coordinates of markers undertake from a DB. whether it is possible to draw in general lines between markers, I saw examples only with points. markers = new ...
2
votes
0answers
72 views

OpenLayers crashes stock browser on Android 4.0.4 devices [closed]

Update: The issue appears to be with OpenLayers Release 2.13 dev. I mistakenly mentioned 2.12 as being problematic but have retested with no problems. Also, no problems with 2.13rc3 We're ...
1
vote
0answers
36 views

Unable to reorder after layers from multiple ArcGISDynamicMapServiceLayers

I used the ArcGIS Javascript layer reordering sample as template. Initially I have 4 layers added to the map by ArcGISDynamicMapServiceLayer where reordering was working. Then, instead of using add ...
-1
votes
0answers
41 views

Get attributes and geometry from a feature and convert it to a graphic in JavaScript

How can I get the attributes of a selected data (wfst) and push it into a grid? Can I convert this selected feature to a graphic? Any idea?
2
votes
1answer
49 views

How to render iD editor-style streetmaps?

Is there a simple way to render OSM data (let's start with just streets and names for a single metro area) client side as nodes and edges like the new iD editor? I'm comfortable with d3 but am ...
0
votes
2answers
55 views

ArcGIS javascript api - layer reordering - how to add new layers?

I am learning ArcGIS javascript API and wanted to make a reordering panel for my webapp. I looked through the ArcGIS sample. but I'm stuck at addLake() function. If I'm understand the sample ...
0
votes
1answer
23 views

Multiple FeatureType in WFS Protocol

I would like to pass multiple featureTypes to WFS protocol in order to accomplish a search feature in my app. the idea worked just fine with one featureType, but now I need to add another one to ...
1
vote
1answer
35 views

Problems editing geometry in JS script using a find task in a web application

I've generated a javascript code to my app based on the sample "Show find task results in a DataGrid" of ArcGIS API for JavaScript and I am using editable layers (WFS-T) and it works, but when after ...
0
votes
0answers
47 views

where clause with multiple fields : Arcgis api for javascript [migrated]

I am tring to perform a query with three fields .I have three combobox,each one is populated with a field values.I want to query with the value selected from combobox for each field.I want to know how ...
2
votes
1answer
50 views

First time using ArcGIS JavaScript API - where do I find the JavaScript API to include (.js) into my solution?

I'm writing a web service that will interface with ArcGIS. One of the requirements is to put: esri.config.defaults.io.proxyUrl = "proxy.ashx"; in the JavaScript portion of the page. Of course, it ...
0
votes
1answer
27 views

ArcGIS 9.3 geoprocessing service output consideration

I'm developing geoprocessing service which do few processes with geographic data. I would like to get somehow geometry of those data and use it in my web aplication (JS ArcGIS API). Now I'm wondering ...
0
votes
1answer
37 views

Dynamic data on overlay layer in openlayers

I am using openlayers to visualize an industry using image as the layer. On the raster layer I have created an overlay layer.Is it possible to show updated values (dynamic runtime values - as integer) ...
0
votes
0answers
18 views

populate a combobox in jsviewer widget

I'm woriking with jsviewer and JSAPI v:2.8. in one of my widgets I have a combobox which I want to be populated once the widget is opened .it should be populated with a field values coming from a ...
2
votes
1answer
54 views

ArcGIS JS - Missing “style” when printing dynamic layer

Im having an issue trying to get the url of the map being printed with a dynamic layer. WIth just tiled services and basemap it prints just fine. // USED FOR PRINTING OF MAPS function ...
0
votes
1answer
65 views

creating map not working

am following this tuto to create a map on web with geoserver, GeoEXT, EXTJs, and openlayers here's the linki downloaded ext 4.2.0, openlayers 2.12 and GeoEXT 1.1, when i try to show the map : ...
1
vote
0answers
35 views

Want a transformation box after a user draws a polygon

I have built an application which allows users to draw a polygon inside another polygon. The two polygons are in different layers for some application specific reasons. After the user draws a polygon, ...
0
votes
0answers
13 views

MapInfo8.0 is not letting me edit layers imported from the server? [duplicate]

I have imported 4 layerts from my server for use in MapInfo, when i went to edit these layers the edit tool for each of these layers is grey and non accessible. Any suggestions would be greatly ...
1
vote
0answers
29 views

Updating leaflet variable using dajax?

Really, I think this a somewhat easy question for someone with some more experience in javascript programming. I have a Django app to map some locations using leaflet. I'm using dajax for some on ...
3
votes
5answers
102 views

javascript WKB to WKT function

Turns out json ain't so good at transporting binary data. But with HTML5, XHR2 is now capable of transferring blobs cleanly. I'm looking to transfer binary geometry (to save bandwidth) and decode it ...

1 2 3 4 5 10