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
2answers
109 views

MapServer: Symbol color is set in mapfile. Is there a way to change it using javascript (ie not in mapfile)?

I have a mapfile where the symbol color is set to blue. In my html I have a hover event that brings a popup when the user puts their cursor over the symbol. Working as intended. Now on that same ...
2
votes
1answer
173 views

Add button to map

I know this is a a stupid and direct question. How do I add a button to a normal map? Example: http://developers.arcgis.com/en/javascript/samples/map_simple/ I'm finding a way to make a button ...
0
votes
0answers
864 views

Unable to dynamically locate map boundary coordinates in OSM/Leaflet

I have been trying for the past hour to take the coordinates of the map edge in a OSM/leaflet application I am making. While I can get the coordinates of the center, and I can get the coordinates of ...
1
vote
1answer
550 views

Conversion problems from mappoint to screenpoint using ArcGis Javascript API

I am getting a very strange problem when converting from mappoint to screenpoint. I am using the following code: var sp = esri.geometry.ScreenPoint(512, 151); mp = map.toMap(screenPoint); ...
0
votes
0answers
218 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 ...
2
votes
1answer
2k 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
2k 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
236 views

Can I use a Esri geocoding service with my custom basemap?

I am looking at the 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 ...
1
vote
1answer
318 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?
1
vote
1answer
250 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
138 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 ...
3
votes
2answers
737 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
130 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
769 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
259 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
742 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
60 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 ...
1
vote
1answer
1k 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
1answer
247 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
524 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 ...
3
votes
1answer
367 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
951 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
114 views

Is there a JavaScript SDK for Vehicle Tracking?

Does exist a JavaScript SDK for Vehicle Tracking? Like this one:Map Suite
2
votes
2answers
2k 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
1k 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
461 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
1answer
207 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
239 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
4k 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
343 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
240 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
122 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
1k 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
158 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
106 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
86 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 ...
3
votes
3answers
2k 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
201 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) ...
3
votes
2answers
410 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
269 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
195 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, ...
1
vote
0answers
340 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 ...
6
votes
6answers
1k views

WKB to WKT JavaScript function

Turns out json isn'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 ...
4
votes
1answer
199 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 ...
3
votes
2answers
404 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
190 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 ...
1
vote
0answers
337 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. ...
10
votes
2answers
316 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
354 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 ...
1
vote
1answer
502 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 ...