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
vote
0answers
40 views

CQL Filter on WMS [duplicate]

I have CQL_Filter which filters WMS layer and displays only the points I asked for, The problem is that all features even the hidden, keep showing its popup when I click on their spot. So, as I ...
4
votes
1answer
181 views

PrintTask in ArcGIS Online JS Api

I'm using the PrintTask() function from the ArcGIS Online API. Works like a charm...untill you add your own graphics. When I don't run the addedAskedSymbolsToMap function in the code below, and only ...
1
vote
1answer
43 views

jquery communication with arcgis services

I am working with the ArcGIS JavaScript API for my application. My app users are stored in a table published in a map service. Whenever a user wants to connect to the app, he needs to provide a ...
0
votes
0answers
54 views

Move OpenLayers.Popup up to 10 pixel and left 15 pixel?

good afternoon, I have a popup that is in the map and I want only move 10 pixels high and 15 pixels to the left, the problem is that when you change its position in latitude and longitude, is in ...
2
votes
1answer
63 views

URL “ http:// <mygisServer>/ArcGIS/rest/service/GPTask/MapServer/jobs/<jobid>” not found in the ArcGIS Server?

I am Using ArcGIS Server 10.03 SP3. I created a geoprocessing service in the server which returns a result map service. I successfully created the gp service and map service with same name. I need to ...
5
votes
1answer
124 views

Possible ways to display maps offline, inside mobile hybrid app

I want to develop a mobile hybrid application to run on both Android & iPhone devices in which i want to display my own map data. I have the SHP files with the data i need. I have Geoserver and ...
2
votes
3answers
145 views

get latitude & longitude as per address given for leaflet

In my project I am using leaflet to display points. I am getting address from my database & want to show point for that particular address. I dident found anything which will give me latitude ...
1
vote
1answer
37 views

openlayers point intersection

For example, I have 2 points and I want to know if they intersect. If yes, I need to delete first points. Should I use OpenLayers .intersects method? Because it greatly depends on zoom level. Or ...
7
votes
3answers
133 views

CORS issue ArcGIS 10.1 IIS (Cross Origin Resource Sharing)

I have ArcGIS 10.1 installed with the web adapter for IIS. I've added a config file to the root of IIS7 to enable Cross Origin Resource Sharing (CORS) as per this page. I've pushed the cors enabled ...
0
votes
1answer
65 views

ESRI JS API - don't trigger onClick event when panning Map

I have a custom onClick handler for my map that is meant to add a point wherever the map is clicked. I'm finding that this function is triggered even when I click the map to pan. Is it possible to ...
0
votes
1answer
49 views

Why won't this mapbox map load into a DIV container?

All, For the life of me I can't figure out why I can't load a map into a CSS template I'm trying to customize. I've placed a fiddle here: http://jsfiddle.net/mapbaker/Du7zq/10/ Basically I'm ...
0
votes
0answers
71 views

OpenLayers map not showing on my JQuery Mobile site

I have an OpenLayers map which is suppose to be made using variables from a PHP array once a button is clicked on my JQuery Mobile site. For some reason however, it is not showing on my page when I ...
1
vote
1answer
54 views

Create buffer around point in LeafletJS?

I am using LeafletJS. I want to create buffer around point. after Selecting a point buffer radius will be specifed by user in feet. After searching of awhile I found this link of JSTS. does JSTS ...
0
votes
1answer
148 views

How to draw straight lines inside google map polygon [closed]

I have created a google map using google map javascript API V3. I am drawing number of zipcode polygons. The polygons are of different colors depending upon some condition. Now I want to draw straight ...
0
votes
0answers
36 views

How do I create an openlayers image layer using a layer already loaded?

so I am trying to add an image layer after using javascript's img.load. I use this because I want to check some things with the image first. Then I want to add it to my map. My issue is that I do not ...
2
votes
1answer
113 views

call child div function from parent (not using window.opener)

This is a a Javascript/JQuery question that is directly related to the ArcGIS Javascript API... I have a map div created using a 'data' tag in HTML, which becomes visible on a button click. (I'll ...
1
vote
1answer
55 views

How do I create a basic image layer as a base layer in OpenLayers?

I'm trying to create a map using OpenLayers which uses a png image as a base layer but I'm having a bit of trouble. I'm not too familiar with OpenLayers as I have only come across it today and thought ...
0
votes
0answers
48 views

Dojo Gantt Chart doesn’t work properly wqith ArcGIS API 3.3

I am using a Dojo Gantt Chart in ArcGIS javaScript API3.3. and it seems that it does not work properly with the API3.3 popup menu which appears when you hover over the task or project; it pops up too ...
1
vote
0answers
42 views

Interpreting Firebug results on ESRI Javascript feature layers in the NET tab

This was cross-posted to the ESRI Javascript API forum yesterday. I need help in interpreting what I am seeing and wondering why I'm seeing duplicate features. I'm using this example: ...
0
votes
1answer
111 views

openlayers how to get feature info on form submit?

I have an OpenLayers pop-up with a form on selectFeature (WFS-T). Can I recover the feature.attributes in the form's onSubmit? e.g: the form in the popup var content = '<form ...
1
vote
1answer
81 views

OpenLayers OSM layer

I need to define an layer in OpenLayers just showing world map. The most simpliest variant is to create OSM layer. When I do like this: var layer = new OpenLayers.Layer.OSM("OSM"); ...
0
votes
0answers
38 views

How to copy feature layer graphics

Is there any way to copy graphics from feature layer? More details: I have a map, where I retrieve some information from sql db and add a chloropleth map based on the values. Before adding them to ...
0
votes
1answer
96 views

zoom to extent of several vector layers

I'm trying to zoom to the extent of several vector layers data. I've tried to create a new OpenLayers.Bounds bounds and to add a 'loadend' for each OpenLayers.Layer.Vector to increase bounds, but ...
2
votes
1answer
201 views

ESRI Javascript API Export to Shapefile and CSV

I am working on a Javascript Web Application using the ESRI Javascript API v3.3. My application allows the user to edit and query data and also provides a table for attributes. I would like the user ...
1
vote
2answers
221 views

Spatial query in ArcGIS Javascript Api 3.1

I have scenario in which I have to select features drawing a polygon and and get the attribute values in to a tables or lists.The features on the map consist of polygon, line,point at the same time so ...
0
votes
1answer
110 views

Not showing multiple markers on OpenLayers

I want to show multiple markers on my Google map with OpenLayers. Below is my code : for (var pointcount = 0; pointcount < jsonObj.length; pointcount++) { if (jsonObj[pointcount].Long != null ...
0
votes
0answers
49 views

Why does Openlayers loadend event run twice?

Openlayers loadend event run twice on version 2.10. See my code: layer.events.register("loadend", layer, function() { //Do something }); No answer on openlayers docs.
1
vote
1answer
75 views

Arcgis Server - Highlight Identified Features

I am identifying features from an ArcGISDynamicMapServiceLayer All the sublayers can be toggle on/off and when identifying, only the visible layers are queried/returned. Below are the initIdentify ...
0
votes
0answers
135 views

create polylines with different colors in leaflet

I have one function which creates poly line & adds that polyline to map function makeRoute(e) { if(pointsSelection.length > 0) { pointsSelection.push(e.target.getLatLng()); ...
1
vote
0answers
150 views

OpenLayers and GeoJSON - possible to create, modify and delete features?

I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)? This is how far I've come - I've no problem changing the pop-up to a ...
0
votes
0answers
140 views

Figuring out Latitude and Longitude from XY Image [closed]

I'm having difficulty calculating the latitude and longitude values of an image that I am hosting inside of a div tag on my webpage. I can easily figure out the x,y (pixel) coordinates of the image ...
3
votes
1answer
99 views

ArcGISDynamicMapServiceLayer change layer hierarchy

I am building an application off an existing map server using the javaScript API. The server has about 10 layers that I am loading into my application as a ArcGISDynamicMapServiceLayer. Once I have ...
1
vote
0answers
124 views

Are there any examples of WCS getcoverage requests done using ajax?

I am looking through openlayers to try to figure out a consistent format for generating views of coverages that can satisfy any wcs server, but mainly I'd like to get geoserver coverages. While I've ...
1
vote
2answers
132 views

Can anyone point me to good development environment in linux for client side search with flex or javascript?

I want to create a client in mapfish, and/or opengeo, using open layers, maybe cartaro and would like to play in a development environment using flex or javascript. I need to take my data, make it ...
4
votes
1answer
149 views

Building a custom, dynamic legend using ArcGis-server js and dynamicMapServiceLayer

I have a dynamicMapServiceLayer that I am using to build a map application. There are about 10 layers in the mapservice that I am toggling using the setVisibleLayers action. I would like to build my ...
3
votes
1answer
134 views

Rendering error ArcGIS javascript API IE8

I have an issue when displaying features on a map in ArcGIS Javascript API V. 2.8. I want to know if this behavior is seen before, and what could cause it. In Internet Explorer 8 the map looks like ...
3
votes
1answer
180 views

Trouble with accesing API code: “ReferenceError: esri is not defined”

I am developing a web map application in the ArcGIS API for Javascript. I two have ArcGISDynamicMapServiceLayer layers that I am trying to run a simple query task on. The code I am using works in ...
2
votes
2answers
374 views

ESRI Javascript API: How to hide infoWindow while using measure tool?

In my Javascript API Web application I'm using the infoWindow to query a parcel layer and display display information in a popup when I click the parcel. I've set this functionality to turn on and off ...
2
votes
1answer
33 views

How to show layer when select another layer?

I have an OpenaLayers/gxp application. I have base and overlay layers groups. I want to show some overlay layers when select base layer. For example when i choose BaseLayer1 i want to show ...
0
votes
1answer
79 views

How to properly use PostGIS with Maps

First time using PostGIS in an app. Target: - Get Heat Map of customers from address table using leaflet.js and heatmap.js Have DB called store_dev. Installed OSM Bright from Mapbox in it. Have a ...
3
votes
1answer
139 views

Convert ArcMap label expressions from VBScript to Javascript or Python

I have a large number of layers (hundreds) with label expressions written in VBScript. I am using ArcMap 9.3.1, and I'm now starting to export the layers as MPKs for use in our ArcGIS Runtime (WPF) ...
5
votes
2answers
216 views

Moveable ESRI / ArcGIS Identify Popup Window (Dojo)

I'm trying to get a popup window that identifies a location to be moveable. My code is similar to the API example: var popupOptions = { fillSymbol: new ...
0
votes
0answers
46 views

Dynamic feature creation moves feature on zoom

I've been trying to create a feature programatically in OpenLayers, but the feature moves to 0,0 whenever I zoom in or out. This is just an ajax request, that filters a bunch of points using their ...
0
votes
0answers
77 views

Display a single country with OpenLayers

Can I display a single country using Openlayers? I'm not trying to restrict zoom levels or . I want only one single country to be displayed. The rest of the world cannot be displayed. My reasearch ...
1
vote
1answer
90 views

How do you get the coordinates from a drag event in the Google Maps API V3?

I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the route when it is dragged. I know how to pick up the coordinates giving the start and end points, but, ...
0
votes
1answer
68 views

Populating Dropdown based on Geoserver service

I am new to web programming here. I have a table which has multiple columns including: Restaurant Name,Restaurant Id, Lat, Lon, City, District, Country. My requirement is to build a web client using ...
1
vote
1answer
180 views

sorted ItemFileReadStore list not pushed to dropdown menu // Dojo, ArcGIS

this may be more a Dojo question than ArcGIS, but I am not sure if the Javascript API is related to this issue. I am trying to alphabetically sort a Dojo store and show these items in a dropdown ...
1
vote
0answers
102 views

How to create a Google Maps with draggable routes with fixed markers

I have a webapp where I show a route on a map, I pass two address and show the route on map, so I'd like that this route should be draggable but the points A and B shoud be fixed. How to do this?
1
vote
1answer
573 views

How to geocode addresses from MySQL and add them like markers to the Google map?

I'm using Google Maps API and Google Geocoding for geocoding addresses. I have table named 'users' and column named 'location' in MySQL database. Column 'location' contains addresses. I need to ...
1
vote
1answer
144 views

OpenLayers and GeoJSON - problem projecting EPSG:4326

I'm trying to project some GeoJSON data but it ends up at 0,0. I've looked at other posts and tried those solutions to no avail. Can anyone help? Here is the code: <html> <head> ...

1 2 3 4 5 10