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
90 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
423 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
179 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 ...
5
votes
1answer
320 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
51 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 ...
0
votes
1answer
463 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
17 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 ...
0
votes
1answer
146 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
292 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
225 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
600 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
76 views

Is there a JavaScript SDK for Vehicle Tracking?

Does exist a JavaScript SDK for Vehicle Tracking? Like this one:Map Suite
1
vote
2answers
706 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
656 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 ...
3
votes
1answer
292 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
235 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
145 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 ...
1
vote
1answer
120 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
2k 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
236 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 Update 2: This ...
1
vote
0answers
142 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 ...
2
votes
1answer
102 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
381 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
83 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
74 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 ...
1
vote
1answer
74 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 ...
2
votes
3answers
721 views

How to add a polygon from PostGIS ST_AsGeoJSON into Leaflet?

I try to use the following function to add polygons to my Leaflet map. function polygon(geojson) { alert(geojson); // alert for testing layer = L.geoJson(geojson); layer.addTo(map); } ...
0
votes
1answer
110 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
49 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 ...
3
votes
2answers
214 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
192 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
113 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
145 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
492 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 ...
0
votes
0answers
400 views

Getting “pointer” cursor at mouseover for rules/symbolizers based clusters in OpenLayers

I successfully used the AnimatedCluster plugin for OpenLayers. My codes uses OpenLayers.Rules and symbolizers. How can I get a "pointer" like mouse cursor when hovering over a cluster of features? My ...
4
votes
1answer
126 views

Is it possible to implement sticky move tolerance in a ArcGIS JavaScript API application?

We are working on a project in ArcGIS JavaScript and is going fine. We want to add sticky move tolerance to our project so it will not be so easy to move features on the map. Is it not possible to ...
2
votes
2answers
171 views

How to upload polygon data for appending to a geodatabase via a JS API web application

After a many hours of research, I am having a hard time determining the feasibility of an application I am trying to build. Basic proposed functionality is: user logs in, uploads polygon (either ...
0
votes
1answer
77 views

How to add offset to layer in OpenLayers?

As the title suggests,I have GeoJSON vectors on OpenLayers map where user should add X/Y offset (i.e 5 meters north,5 meters east).I plan to add some control for it. Since vectors are drawn map with ...
0
votes
0answers
100 views

SLD based selection on WMS layers - How to set the new style of clicked point?

I'm trying to follow this example: http://openlayers.org/dev/examples/SLDSelect.html When I click on the point, its color should be changed, here is a piece of my code: control = new ...
1
vote
0answers
253 views

Google Maps v3 with Openlayers - First Zoom Level

I use Google Maps v3 in my application and I noticed a strange behavior, When I refresh the web page, the map zoomed out to display the whole map then get back to the zoom level I specify in my code. ...
8
votes
2answers
269 views

Instructor led Web mapping development courses?

Hey guys I have been messing around with programing for a while now and have gotten proficient with Python and have some interest in HTML 5 and Javascript. I have recently received a request for an ...
4
votes
1answer
254 views

What are offline/client geometry capabilities of ArcGIS JavaScript API?

Lately I've been going through ArcGIS JS API samples, but from what I've seen, it looks like all geometric functions always go through server, and use server side REST functions. There is no option to ...
0
votes
1answer
259 views

openlayers addUniqueValueRules default style not displaying

I'm trying to alter the colour of displayed points using addUniqueValueRules in OpenLayers. If I don't use addUniqueValueRules all my points display the default colour (green). However, when I add ...
0
votes
0answers
540 views

Reset style on select Leaflet polyline

Using Leaflet, how can I reset a polyline to it's previous color after it was selected? I have the following function that has been applied to each polyline when constructed: function ...
0
votes
1answer
229 views

OpenLayers generate random polygon

I have a world map. I need randomly to generate polygons and render them on map. I have no problem with rendering, but can anybody suggest how to generate polygons with random geometry? (I need n ...
2
votes
1answer
2k views

How to use ArcGIS JavaScript API's map.centerAndZoom()?

I'm trying to get the map to move and zoom in to a point when a function is executed. Point gets selected, but without zoom. Interestingly when I zoom in to a random location and then execute the ...
1
vote
2answers
87 views

simplify point geometry

I have a great amount of points and I need to show them on map. I am using OpenLayers. Is it possible to simplify point geometry in order to speed up the process of rendering?
0
votes
0answers
143 views

OpenLayers Vector Line Feature hard to select

I have a measurement control on an OpenLayers map which allows the user to (unsurprisingly) measure lines and areas on the map. They draw the line/area they want, OpenLayers does the measurements ...
1
vote
1answer
261 views

How to convert EPSG:2163 coordinates to wgs84 in javascript

I'm currently testing a web app that calculates EPSG:2163 coordinates based on user interaction with a map created through d3.js. I wish to convert these coordinates to WGS84 in order to use various ...