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
241 views

Custom ArcGIS GraphicsLayer (JavaScript)

I am working on an application that will retrieve data from various sources and construct ESRI GraphicsLayer objects from the data and display it on a map. I have created custom FeatureLayers before ...
3
votes
1answer
744 views

How to Use Custom Basemaps with BasemapToggle widget?

I'm trying to upgrade my app from version 3.3 to version 3.7 of the JavaScript API and am switching out the basemap gallery for the new BasemapToggle widget. I have two custom basemaps that I want to ...
2
votes
1answer
434 views

Visibility On-Off of Label Layer in arcgis javascript 3.7

I am using ArcGIS JavaScript 3.7 API's and i am using agsjs.dijit.TOC control and it is working fine but when i added Label Layer in my map that time Label layer is coming fine but TOC is not working ...
2
votes
1answer
171 views

How customize GeoRSS icon in ArcGis JS API?

I have this little piece of script to customize the icon of some GeoRSS points, but I have no display and no error in the console. var map; require(["esri/map", ...
2
votes
1answer
573 views

Looking for an API that will autocomplete adresses, and split them up into parts

I'm kinda new to the whole GIS thing, and found that is necessary for onw of my web apps. It's come to my attention that some people don't know what a proper physical address looks like, and so I'd ...
0
votes
1answer
44 views

Global timer java script in KML

i have a timer script which shows the time of system in Description tag <script type='text/javascript'> setInterval('tick()',50); //tick is a plugin and 50 is in ms delay time function ...
1
vote
1answer
715 views

Leaflet Heatmap Dynamic data layer

I am trying to add heatmap layer to my map. I have tried the following plugin: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html From this plugin the data came from ...
1
vote
0answers
59 views

How do I get ArcGIS tiles to display a single layer when multiple layers are available?

I am using Bing Maps v7 to display layers from an ArcGIS server. The server displays multiple layers as one, but I would like to only display a single layer. Suppose a map service has the layers: ...
4
votes
3answers
285 views

ArcGIS Javascript API with Windows Authentication

I am using the ArcGIS Javascript API to consume a feature layer on an ArcGIS Server secured with Windows Authentication. I want to satisfy the authentication programmatically so the web user isn't ...
1
vote
1answer
564 views

How to add a WMS layer on Cesium Globe?

I downloaded Cesium Java Script library for creating 3D Globes from "http://cesium.agi.com/". Also I found that, they are using Bing satellite map as default. But I need to display layer from My ...
3
votes
3answers
281 views

ESRI JS API - Getting a Screenshot with pure Javascript

I have a requirement to be able to produce a pdf of the application's map (Esri JS API 3.7). The map will contain ArcGISDynamicMapServiceLayers, user drawn graphics including text symbols, and ...
1
vote
0answers
74 views

How to dynamically disperse point labels in ArcMap, using image files and leader lines?

My GIS group needs to find, or somehow develop, a labeling tool for points in ArcMap. Ideally, it would work like this: Each point would be labeled using an image file (jpg or png) so that a ...
2
votes
1answer
541 views

How to create 3D web application using Open Source GIS software?

I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. How can we create GIS based 3d application like below attachment using opensource softwares ...
1
vote
1answer
111 views

Show previously loaded tiles while loading (zoom in or zoom out) map

How to remove the white tile part(map loading area). While zoom in and zoom out, the white tile part is appearing on the map(map loading area). How can we fill that area with the history image? Is ...
2
votes
1answer
379 views

While developing stage, Is Proxy.cgi required to get Openlayers WMSGetFeatureInfo?

I have published the data in Geoserver (Tomcat and OS Ubuntu) and I am developing a map application in my local machine (OS windows xp) using asp.net. In my application, I can get WMS feature ...
3
votes
0answers
164 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
3
votes
0answers
141 views

How to convert WKT to SVG

I have some Well-known text (WKT) for representing geometry object such as Point, MultiPoint, LineString, Polygon, MultiPolygon etc. I have a multipolygon with in total 40000 Points. I have found ...
0
votes
0answers
46 views

Coordinates misplaced in openlayers

I am using a timeline from timeline-github. I used json for showing temporal data in timeline but the features are clustered into (0,0) i.e features are misplaced. I think it's because of projection ...
0
votes
1answer
201 views

How tow use an ArcGISCache layer along with an ArcGIS93Rest layer?

I want to have two layers in my OpenLayers map. The BaseLayer, as well as the overlay layer are being served by ArcGIS Server. I have a problem with ArcGIS93Rest when using ArcGISCache as basemap. ...
5
votes
3answers
124 views

What is the precise distance from equator to pole according to WGS84?

For calculating areas of polygons by means of projecting to a cylindrical equal area projection I came across the following discrepancy: I ended up with a different distance, off by more than 5km, ...
0
votes
0answers
39 views

OpenLayers code for not showing intended area from Google Streets

Would anyone be able to help me with the following code? I have downloaded googleclient.htm world map and want to change it to display Australia only. So I have changed the max.Extent:new OpenLayers ...
2
votes
1answer
486 views

Arcgis Javascript latitude and longitude convert to WGS_1984_UTM_Zone_36N

I am using Arcgis Javascript api. I have two points comes from Google maps like this x:-111.67095840000002 y: 32.7558935 I wanna use this points on my Arcgis map. My map spatial reference is using ...
3
votes
1answer
339 views

ArcGIS JS API: Zooming with mouse wheel/double-click forces pan

I have a map that I'm initializing off-screen and sliding in using jQuery. For some reason zooming in with the scroll wheel or by double-clicking causes the map to simultaneously pan down (or pan up ...
1
vote
1answer
546 views

OpenLayers - Show a WMS Layer from GeoServer

I'm trying to acesses with OpenLayers code an example of the embedded GeoServer map (the map of tasmania), which acts as a local server on my machine. However, every time I open the .html, the map ...
1
vote
1answer
87 views

JS API - onDrawEnd firing twice

I have a simple editing application with the following code: startEditing : function(template) { var drawingTool = template.template.drawingTool; switch(drawingTool) { case ...
1
vote
0answers
97 views

Using sql SELECT DISTINCT in Fusion Tables API

How do I go about using sql SELECT DISTINCT in fusion tables API?
0
votes
0answers
55 views

Fusion Tables API advanced visualizations

From the google example; i want to replace the column bar chart with a dynamic pie chart. How do i do that. What codes do I need to change?
3
votes
1answer
133 views

looking for an esri compatible javascript engine

I work on an esri heavy team, i'm looking for a mapping engine that will give me flexibility to build on top of and leverage only the pieces I need and or add more as the app grows. I've been using ...
1
vote
1answer
122 views

How can I use the ArcGIS JavaScript API along with a separate version of Dojo?

I am using the ArcGIS API for JavaScript in my application which is being developed using IBM WebSphere Portal. When I integrate ESRI with my HTML code it works fine but when I load the ArcGIS ...
1
vote
1answer
126 views

Problem with creating a “blank” basemap in an application built with arcgis javascript api

I'm building an application where I'd like the user to be able to select a blank basemap from a gallery of basemap options. I've found that if I initialize the app with a "white" "blank" or "none," ...
1
vote
1answer
260 views

Search Functionality using Cartodb API

I posted a similar question about this a month or so ago and I was still in early stages of researching the problem thus not to many results came from it .After some time and effort I have come close ...
0
votes
0answers
104 views

How to change the color for Openlayer Layerswitcher?

I tried to change the layerswitcher color. But its not changed. Here is my code. I tried in javascript also osMap.addControl(new OpenLayers.Control.LayerSwitcher({ 'activeColor': "white", 'fontColor': ...
0
votes
0answers
111 views

OpenSpace.js Member not found error on IE 8

I am using ordnance survey map as backdrop in IE 8. while pan on the map, it throws 'line 301 Member not found' error at 'b||(a.preventDefault?a.preventDefault():a.returnValue=!1)' in OpenSpace.js. ...
1
vote
0answers
96 views

Add your own data to ArcGIS.com javascript template and host locally?

ArcGIS.com has a basic viewer javascript template where you can create a map using ArcGIS.com and then download the files/template to be hosted locally. I won't be able to upload my data to ...
1
vote
2answers
649 views

ESRI proxy page not working properly + CORS + cross domain scripting

I have setup proxy page , i am using jsp version of proxy page.I have setup server url which will point to my java ,when i load the my page which proxy url set in its html i will work fine only in IE ...
1
vote
0answers
88 views

OpenLayers map breaks at certain zoom level when many popups exist in the map

I'm still learning OpenLayers. I found this weird issue in my OpenLayers map. I create FramedCloud popups and add them to each features. popup = new OpenLayers.Popup.FramedCloud("popup", ...
0
votes
1answer
134 views

How to rubberband zoom w/o the shift key: arcgis api for javascript

I want to enable the rubberband zoom effect without users having to hold the shift key down. This behavior is found is Esri navigation bar dijit. I don't want to use the dijit. How can I get a zoom ...
1
vote
2answers
64 views

ArcGIS Javascript Editor - showAttributesOnClick feature

I'm using the Editor dijit to add feature to my map. I was looking at one of the online samples, which mentions a "showAttributesOnClick" setting in the description. When I look at the code in that ...
2
votes
0answers
198 views

Openlayers and Google Maps Api aren't work on Android Platform

I have application that uses OpenLayers, Google Maps Api and Geoserver My application is running at Web browser and when I try to run at Android tablet (using Phonegap), It runs but openlayers ...
1
vote
1answer
692 views

Request WFS from GeoServer with Jquery AJAX using INTERSECT cql_filter error

I am having difficulty troubleshooting this issue and would appreciate some ideas. Thanks in advance! I am trying to make an AJAX request from a Leaflet map with Jquery to GeoServer to return a WFS ...
0
votes
0answers
117 views

saveStrategy and OpenLayers

I am trying to apply code mainly from here http://maps.peterrobins.co.uk/files/ol6.html and create a custom "saving button". Problem is, that my json is loaded (from mysql db) to variable. (This time ...
1
vote
0answers
41 views

Recommended way to use a setting file to initialize OpenLayers

I am new to OpenLayers. I am trying to figure out what is the best way to have a configuration file for the map I am creating. For example, I am creating a map with the following style : var ...
1
vote
0answers
77 views

Create Materialized View to Flatten ArcGIS JavaScript API Database

I'm doing a project using ArcGIS JavaScript API v3.5 hosted on ArcServer v10.1. While reading the question below, remember that I do not have control over the datasource and cannot just create a ...
1
vote
2answers
195 views

How to convert Shapefile to TopoJSON with grouping neighbor shapes by some criteria

I have a shapefile with countries, which I convert to GeoJSON using ogr2ogr and then converting that json to another TopoJSON, using topojson command-line tool. Everything works like charm, but now I ...
0
votes
1answer
435 views

OpenLayers vector does not draw (or re-draw) on zoom level change or layerswitcher off/on

Here is the full code (i'll highlight the important parts after): jQuery(document).ready(function($) { // ...
0
votes
0answers
229 views

Help me convert this US Lambert Conformal Conic Google Maps Projection to Australia

Following on from this question: Identify what projection this Australian map uses? <- this is the sort of map i want to load in I need help changing the bits necessary in this example of Lambert ...
2
votes
1answer
428 views

Can I use leaflet to access a WMS service published as an OpenLayers javascript API?

I would like to add this layer to a site I'm working on that uses leaflet: http://116.240.195.134/vicmapapi/UserGuide.jsp The API itself is a javascript file based on OpenLayers: ...
2
votes
1answer
118 views

OpenLayers: Can I drag a feature between two maps?

Is it possible to drag the features between two different maps? Now, I create feature on event mouseenter but I would like to insert the feature and at the same time start to drag this feature.
0
votes
0answers
168 views

Dynamic CQL filter does not work

I'm using Openlayers 2.12 with Geoserver 2.1.3. I am implementing a dynamic CQL filter to search a vector layer. This is for the back-end of the web-site, so I want to restrict the search like so: ...
0
votes
0answers
42 views

Change feature's image when it's not clustered

I'm clustering the features on the layer using AnimatedCluster this way: dataLayer = new OpenLayers.Layer.Vector("Data", { strategies: [ new ...