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)

1
vote
1answer
151 views

File Upload with GeoEXT FormPanel

I have a GeoExt form and want to do file upload here. But i never work with GeoEXT. I have this. buttons: [{ text: 'Загрузить', handler: function(){ if(fp.getForm().isValid() && ...
4
votes
1answer
228 views

How to generate xml for use with geoxml3

I have a kml and shp I would like to convert to an xml to use with geoxml3. How would I go about doing such a thing? The xml I generate should look something like this: <?xml version="1.0" ...
1
vote
1answer
485 views

Draw svg-circle on a coordinate with polymaps

I'm making a tracker system which uses polymaps to display a satellite image. The code is copied from the bing-example on the website of polymaps. I now want to periodically call an update function ...
1
vote
1answer
368 views

Set attributes for newly created features in OpenLayers

I have a vector layer and label: "${title}" is used as one of style property for its rendering. Is it possible to set feature.attribute.title property before feature will be drawn by DrawFeature ...
3
votes
1answer
294 views

How to draw line by scratching on map using OpenLayers?

Is it possible to draw line by scratching on the map using OpenLayers? I tried some examples, all the examples are drawing by clicking. I want to draw by scratching, just like drawing in normal life ...
-1
votes
1answer
178 views

Map not displaying from Javascript using fusion table

I have this javascript which I am working on but the map in the HTML is just not displaying. I have a similar fusion table with layer_1 which is displaying fine but when I put layer-2 instead of ...
1
vote
1answer
1k views

ArcGIS JavaScript API: Override infowindow 'Zoom To' function or fire a second event

Those of you familiar with the Popup version of InfoWindow in ESRI's JavaScript API know that the Popup has a 'Zoom To' link on it that zooms you 4 levels closer to the linked feature. I'd like to ...
1
vote
0answers
524 views

Multiple Google fusion table layers with queries using javascript

I am making a web mapping application using Google fusion tables and JavaScript. Earlier I had only one Layer on it, but now I have to put another layer. Both the layers have bunch of queries. I am ...
2
votes
2answers
193 views

Using DrawFeature to draw a line between features

I have a DrawFeature control that I want use to draw a line between two features (on a separate layer from the lines). I use a Snapping control to snap the cursor to the features. Any ideas on how ...
6
votes
1answer
286 views

Trigger geocoding without having to visit page

I'm using Google's geocoder to store results in database then display them on a map on another page. The problem is that each company profile page needs to be visited before it's geocoded. Is there a ...
2
votes
0answers
687 views

Dynamic Contour generation and project on google maps

Is it possible to generate contour map layer at runtime and overlap or project on google maps. I am using google map api v3 and want to generate contour map layer using data from sql server and ...
3
votes
1answer
163 views

software architecture for creating routes?

I have a system that can alert staff by email if their device goes into/out of a geo-zone However, we now need to create a route, and then email if someone goes off this route Technically, how would ...
2
votes
1answer
283 views

How to generate thumbnails from shape file and display them on my website?

I tried to generate thumbnails from shape file and display them on my website(using jsp).I had been read this and this question .Very similarity questions ,but I know nothing about python... Is ...
5
votes
2answers
499 views

Can overlays have different resolutions from the base layer?

I am trying to show a regional map on top of base map but without success. While debugging I noticed that my regional map has a different set of resolutions from the base. Is this allowed in ...
2
votes
2answers
395 views

How to pull lat/lng from a map canvas and update a database

So if i want to pull out lat/lngs after user clicks on a map canvas (lat/lngs are pulled using any javascript API (leaflet, wax etc.) and add this to a postgresql database using a query, how do i do ...
4
votes
1answer
633 views

Authentication in geoserver with openlayers

Is there a way to authenticate in geoserver with a external webpage (made with asp.net and openlayers)? I have restricted the access data only by certain users, and I don't want to authenticate this ...
3
votes
1answer
2k views

How to curve lines between points on a map?

I'm trying to curve the lines between points on a RaphaelJS map like Tata Communications - but how did they do it? What sort of mathematics lie behind these curves - unless ofcourse they're all ...
0
votes
0answers
691 views

Plot poly-lines between few points in D3+Polymaps

I would like to create polyline on the click of the mouse. I have 4 circles 3 with radius 2 (Lets name it as B,C,D) and 1 with radius 8 (Lets name it as A). Now when I click on the circle A, poly line ...
3
votes
2answers
720 views

OpenLayers dynamic rules defintion & clone function filter

I'm developing on a OpenLayers application which creates dynamic rules for a vector layer using the geostats library. I want to create these rules inside a simple loop through the number of classes. ...
3
votes
1answer
477 views

Making calls the PostGIS functions with Java

We have Java stored procedure in Oracle that make calls to functions offered by Oracle Spatial to perform spatial analysis and return results. I am looking to the same in PostGIS, is this possible?
2
votes
1answer
957 views

Getting capabilities from tomcat's Geoserver fails

I wanna teke capabilities from tomcat's geoserver. Use this. wms = new OpenLayers.Format.WMSCapabilities(); OpenLayers.Request.GET({ ...
1
vote
1answer
2k views

Click to Hover for WMSGetFeatureInfo

I am using the following code and wanted to know how I can change it from click event to hover or mousemove event. I know there is a eventListner but I am unable to locate the click event where I must ...
2
votes
1answer
662 views

Syntax of WFS request in OpenLayers

I am in need of the correct syntax for loading WFS layer using OpenLayers. I have gone through many examples on the OpenLayers site and other examples, but can't figure out how to use the necessary ...
1
vote
0answers
583 views

ArcGIS Javascript API: Force the fit option when zooming via rubberband selection with tiled map services

We're using ESRI's ArcGIS Javascript API with a tiled basemap and when the user zooms in using a rubberband selection via the navigation toolbar the map sometimes zooms in too far. This is apparently ...
3
votes
1answer
372 views

What's wrong with my Proj4 transformation?

I am having trouble converting a projected coordinate EPSG:28355 to WGS84 EPSG:4326 using Proj4js. I know by default Proj4 will not convert to EPSG:28355 so I went to spatialreference.org and got the ...
7
votes
1answer
1k views

How to configure custom scale in Leaflet?

I have a custom WMS tileset generated using ESRI ArcGIS Server. I have successfully configured an OpenLayers page to display this basemap. The code is as follows: var map = new ...
2
votes
1answer
1k views

Why doesn't OpenLayers zoom?

I've got a little problem with OpenLayers. I've a simple function which sets the center of the map to the position of the user - this works fine. But: it should also zoom - which, for an unknown ...
1
vote
1answer
687 views

Polymaps + D3+ Polyline with different width and color

I am actually working on a project which involves polymaps and D3. I was wondering if you could help me on this. I have 4 locations and I would like to draw a polyline from one location to other 3 ...
1
vote
1answer
2k views

OpenLayers: Load Markers dynamically from Text file

I am trying to load set of markers dynamically from a text file using OpenLayers.Layer.Text. The problem is that no markers is shown after rendering the page. Below is the JavaScript file that is ...
2
votes
1answer
1k views

Polymaps Project + Geojson + D3

How are you doing ? I am Mehul Nahar working on a project which is similar to http://www.tableausoftware.com/learning/examples/gpa-analysis. I have used Polymaps platform, where I have used cloudmade ...
1
vote
2answers
342 views

What components does OpenLayers.Strategy.BBOX require for compilation?

I recompiled OpenLayers with minimal settings, and now Vector layer, that uses BBOX strategy, stopped adding bbox parameter to the queries. What components do I need to add? This is the current ...
4
votes
2answers
2k views

Prevent OpenLayers WMS layer cache by browser

I am using OpenLayers (GeoExt) with google chrome browser. All WMS layer is for live database. I have refreshed the browser at certain interval using javascript but the data is cached in browser and ...
6
votes
1answer
706 views

ArcGIS JS API Relationship Queries

Has anyone ever put the results of a RelationshipQuery() into a map.infoWindow that's been replaced with a dijit.popup? Here's the workflow: User clicks a point, and all identify results are put ...
1
vote
0answers
145 views

How CONVERT a lat/lon point TO a x/y point ON a world mercator proj image in JS?

Thx to read and think about my problem! :) I have a map world image like that (mercator proj): http://www.learnnc.org/lp/multimedia/14596 And I have a lat/lon point to place on it in javascript, I ...
2
votes
1answer
1k views

How to make a predetermined Polygon (Circle) From 4 Coordinates, The Radius and Center Longitude and Latitude in Openlayers

I know how to make a predetermined Polygon in Openlayers (see below). Please have a look at http://studio.netnrg.co.za/dev/rnd/blake.loizides/openlayers var feature2 = new ...
8
votes
3answers
3k views

Editing PostGIS/GeoServer data via web?

I've got PostGIS installed and would like to create a web application to do some simple edits: Draw manually (over a Basemap) points, lines and polylines, using snapping points (points, end of ...
0
votes
0answers
435 views

How to display Heatmap in Internet Explorer 7 using ArcGIS JavaScript API?

Trying to find a solution to heat maps on IE7/IE8 (i.e. not using Canvas/HTML5/heatmapapi). Any ideas?
1
vote
1answer
506 views

Preventing an Openlayers WMS layer from updating on zoom-change

I'm using openlayers to overlay a raster. When I zoom out, the overlaid layer expands to cover a larger area than was originally requested. I want the tile to be fixed to a particular boundary, and ...
2
votes
0answers
96 views

Running a web application within ArcMap

I'm interested in creating a component / plugin for ArcMap that works something like ArcGIS online. Ideally a small web app would boot up within a window in ArcMap which would be able to perform ...
3
votes
1answer
320 views

ArcGIS Server 10 GP Service Cannot Download Result?

I have implement the ArcGIS JavaScript example just like the ESRI official example (clip and ship) .Everything was going right except the final step ,when the gp job have finish and my browser lead me ...
3
votes
2answers
3k views

Markers on openlayers openstreetmap

I am trying to show some markers from a database in openlayers. I tried it in google maps in past using GDownloadURL fuction to read a json php generated file from my database. Now I tried the same ...
2
votes
1answer
149 views

Duplicate source information from esri.tasks.PrintTask

We are trying out the PrintTask in ArcGIS Server 10.1 pre-release. When an Esri base map is enabled, we are getting source information in two places in the resulting .pdf. I can confirm that this ...
1
vote
2answers
607 views

Problem loading KMZ in Google Earth API

I am building a Google Earth API application using a map service (using ArcGIS Server 10) that has KMZ/KML capabilities. For some reason, I am able to access the KMZ layer within our network. But, ...
1
vote
1answer
1k views

Cannot Overlay PNG onto Map with OpenLayers

I am trying to create an OpenLayers.Layer.Image and incorporate it into my map. I have this block of code: map = new OpenLayers.Map ({ div: "dvMap", theme: null, ...
1
vote
1answer
535 views

I wanting to reproject the vertices of my polygon. I have been able to achieve this for the bounds but having a bit of trouble with the vertices

I wanting to reproject the vertices of my polygon. I have been able to achieve this for the bounds but having a bit of trouble with the vertices. function onFeatureModified(event) { ...
3
votes
1answer
421 views

How Can I Calculate Time from Coordinate?

For my application I am searching for an API or an algorithm for clicking point time and time zone. I dont know how I can do this but after getting time I want to calculate giving coordinate sun ...
1
vote
1answer
578 views

Unproject Radius with Openlayers with CRS:84 Projection

I have made a Openlayers integrated map that lets you draw a circle, On completion of the circle I have told the map to give me , Bounds, Center Long and Lats, and lastly the radius. My problem is ...
4
votes
1answer
2k views

How to display Radius after Resizing a Feature in Openlayers

@captDragon has helped me with calling the coordinates of a polygon after I have resized or dragged the feature. Ineed the radius now, i have done a radius alert on my other map,Which works correctly, ...
2
votes
1answer
1k views

how to get Coodinates after Resizing a feature Openlayers

I'm trying to display the coordinates of a Feature or vector layer after I use the modify radio button to resize my vector, but it does not work, nor on my drag feature. I'm using ...
1
vote
1answer
1k views

How to stop or deactivate draw polygon control after the first polygon has been drawn in Openlayers

I want to only be able to draw one circle on my map and then disable the control. Below is my code, Any suggestions? <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...