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)

4
votes
2answers
754 views

Authentication in Geoserver 2.4.x from a web application

I am trying to build a web application using html and javascript from which I want to login to geoserver hosted at: https://weaveprod.ucdp.utah.edu/geoserver/web/ I have written the following code for ...
2
votes
1answer
324 views

Using Odyssey.js with Cartodb.js

I'm looking to use Odyssey to create an interactive introduction to various data layers on an interactive web map I've created using CartoDB.js. I'd like to have different data layers turned on / off ...
1
vote
1answer
176 views

Plotting shapefile on map using ArcGIS API for JavaScript?

We are using dojo framework to develop our portal.We have bind the arcgis map in our web portal.Is there any arcgis JavaScript API which will accept the path of the shape file and plot that shape ...
1
vote
2answers
31 views

Issue in loading external geojson file into leaflet map?

I want to load an external geojson file into leaflet map. I created a global variable (i.e. tracts) for json file and referenced this variable in the script file. But i receive an error message that ...
0
votes
1answer
20 views

Display Popup from postgis db over WMS layer file using leaflets?

i want to display popup information over WMS service file that i published from geoserver and using it Leaflets. Below is the picture for illustration. Now i just want when user click any polygon ...
2
votes
2answers
27 views

Leaflet filled contour map

I have evaluated the Getis-Ord Gi*-spatial statistic for each point in my map. Like this, each point is assigned a Gi-score and due to this a certain color, as you can see in the image below. What I ...
1
vote
1answer
53 views

display local tiles with openlayers that are generated by maptiler from a (.tif) georeferenced image

im working on a mobile app and trying to use my locally stored tiles that i generate using maptiler software. after tiling my image.tif i got many folders of png images and two other files : ...
0
votes
1answer
18 views

OSMBuildings building:levels are not working

I am integrating Leaflet with OSMBuildings and i am using Classic 2.5D. Everything is working and it is showing 3D building on 2D Map, But The Building levels are not working (I am gone through this ...
1
vote
1answer
14 views

Can i take the wms url from the user interface

If user wants to overlay his own wms layer overlay on the basemap of our portal, then how can user pass that url to openlayers method like below code enter code here overlayGroup.getLayers()....
1
vote
1answer
28 views

How to insert new data points into CartoDB map?

I'm using NASA api data to populate my database in CartoDB's website to load places where meteorites have fallen. In JavaScript I'm currently creating a specific collection of meteorites I want to ...
1
vote
1answer
574 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
0
votes
0answers
8 views

Installing mapfish?

I installed the plugin of mapfish then they told that after the installation is done and after restarting my server I would find a module called priniting in the data_dir's folder of geoserver but in ...
2
votes
1answer
231 views

Showing link for every city at different zoom levels using Leaflet?

I have a Leaflet map that I am using to render a map of the U.S. The map will have specific zoom levels. For example, when the map first loads it will show major U.S. cities. Then if you zoom in it ...
3
votes
1answer
60 views

Rotate geojson feature with Leaflet

I have a GeoJson feature that is rendered with leaflet and proj4(ESPG:31467). Now I want to rotate that feature so that it NW corner points to NE, e.g. 90 deg rotation. Is there a way to do this? Or ...
0
votes
0answers
17 views

openlayers-3 popup getfeatureinfo

I'm Working on a map and I want to put popups to show information about each queryable layer. This is what I've got so far, but I can't make it work. HTML: <section class="visualizador" id="...
0
votes
0answers
12 views

Mapbox JS get geojson and echo to a div

I have a mysql table with geo data (id, lat, lon, speed, ...). I am using this php to parse to geojson (json.php in my case): <?php header('Content-type: text/plain'); $username = "[user]"; $...
3
votes
3answers
75 views

Leaflet - tell whether an object a layer or a group

I need to close popups on an object, but I don't know whether it is a layer or a geoJSON (and hence a feature group). If the former, I can do layer.closePopup(), but if the latter, I have to do layer....
0
votes
1answer
15 views

Google Places search implementation

I have a Heron/Geoext/ExtJS map. I found a site with this function and I would like to implement it. So how can I use this function without their MapCentia.gc2 function? How can I rewrite it to use ...
1
vote
0answers
20 views

Multiple Selection

I implemented a map with markers pointing to airports, and when I click on a marker the name of the airport appears in a field. (All date included in a GEOJson external file). I just have a last ...
1
vote
1answer
241 views

Legend ArcGIS Javascript does not recognize Legend from ArcGIS for server 10.2.2

I have created maps in ArcGIS for desktop and published them to ArcGIS for server 10.2.2. Because of performance issues I have created a group layer of the same map with different levels of details. ...
0
votes
1answer
249 views

Date field formatting as number in ESRI popup window

We are using the Park and Recreation Locator from ArcGIS for State Government and trying to put a date field into the popup info window. The field is pulling the correct data, but it's formatting it ...
-3
votes
0answers
21 views

Error de JavaSQgis en Qgis [duplicate]

Cuando intento cargar la imagen de Google en Qgis 2.2 Valmeria me sale este error "Esta página no pudo mostrar un elemento de Google Maps. Contacta al administrador del sitio. Si eres el ...
1
vote
0answers
202 views

Opengeo suite 4.6, gxp template, problem in adding print tool

I have checked this question here but it one of the link is missing and it was on suite 3.0 and i have no idea if it will work on suite 4.6.I have installed the print extension in opengeosuite then ...
0
votes
1answer
36 views

OpenLayers Plugin error: Google [duplicate]

I've seen other related questions concerning this issue, but I can't figure it out. QGIS doesn't show me Google Layers from the OpenLayers Plugin, and the following message comes out: This page was ...
3
votes
3answers
2k views

json to shapefile in javascript

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment. Do you know or ...
1
vote
1answer
216 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
2
votes
0answers
24 views

CartoDB.js/Leaflet map - how can I click between multipolygons cleanly?

Here's my map: https://jsfiddle.net/Sidders/4exf969e/3/ I want to apply a click and hover effect to the polygons. So a polygon/multipolygon highlights on hover, and is selected with one click. The ...
0
votes
1answer
26 views

Error Multiple Define when loading base script

I have an existing google maps-driven project that I'm trying to rebuild using Esri's JS API. Whenever I add the script tags <script src="https://js.arcgis.com/4.0"></script> to my page, I ...
-1
votes
0answers
25 views

Leaflet & Cesium integration for 2D & 3D view [closed]

I'm not a developer, but please allow me a question. I try to create an interactive map (non-profit) in Leaflet with old town plans (WMS) and add a layer for historical photos (Geotagged Photo Leaflet-...
0
votes
0answers
6 views

How to filter two layers from drop down menu cartodb.js?

I am very inexperienced with Javascript. I already have a script to query a table column to auto populate a drop down menu and query the polylines based on multiple selections as attached below. I ...
-3
votes
0answers
15 views

display buffer turf only when i click on a layer [closed]

I want to display turf buffer only when I click on a layer var pt = { type: 'Feature', geometry: { type: 'Point', coordinates: [lat, lng] }, properties: {} }; var unit = 'miles' var ...
0
votes
1answer
359 views

Parsing XML file with hundred polygons using OpenLayers

I'm using this script but It's not working. <script type="text/javascript"> var raster = new ol.layer.Tile({ source: new ol.source.OSM() }); var xml = new OpenLayers.Format.XML(), wkt = new ...
10
votes
3answers
3k views

Restrict pan and zoom in ArcGIS Javascript API? [duplicate]

I'm creating a web map of a university campus. I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace. Do you know of a function that will auto-pan the ...
0
votes
0answers
21 views

How to add mutiple photos from flickr API on the popup of leaflet.js markers

I want to make a slider of photos on the popup of the markers by taking 5 photos for each location.I have a JSON of few locations of a city.The json has the name, latitude and longitude of the ...
0
votes
1answer
25 views

CartoDB: Trigger InfoWindow from inside another InfoWindow

Is there a easy way (maybe even generic solution) to trigger opening the InfoWindow of Marker 1 from inside the InfoWindow of Marker 0? The goal would be to «jump» from marker to marker right from ...
1
vote
2answers
67 views

Set view does not work after Fitbounds

I have a map and a layergroup. var map = L.map('map').setView([27.6758,85.3313], 12); L.tileLayer('http://{s}.tile.cloudmade.com/8ae544230be74379927e6dee5d416398/997/256/{z}/{x}/{y}.png', {}).addTo(...
-5
votes
0answers
24 views

i want gmail chat box [closed]

We have done like gmail chat box but onething is not working that when we click pop-out icon its opening new window but if i click on pop-in icon , its not coming on same position like gmail chat. ...
0
votes
0answers
45 views

Change feature coordinates during drawing in OpenLayers 3

I have code which creates draw interaction for polygon. var createDrawInteraction = function () { return new ol.interaction.Draw({ features: polygonFeatures, type: ...
0
votes
1answer
210 views

Is there any Map event fired when map is loaded completely when we device is oriented from portrait to landscape mode?

We are using ESRI ArcGIS JavaScript API in one of our Mobile web app. When map is loaded first time, Onload event is fired. But when we change orientation from Portrait to Landscape, OnLoad event does ...
3
votes
2answers
3k views

Google Maps need to click twice to get marker click event to trigger

I have a google map that I am populating with real estate listings from a database. I have set it up to refresh the listings when the map is panned or zoomed. I am using the dragend & ...
3
votes
2answers
493 views

Openlayers map WMS stretched by latitude

I am working on a small javascript application for displaying map with WMS layers from 2 servers. The problem is, that image is stretched by latitude, it is wider, as it should be. This is is how it ...
1
vote
0answers
33 views

Dynamic column header in datatable from json array?

I want to populate datatable with dynamic column header and column data,i can populate dynamic column data successfully,but i cant achieve dynamic column .. I am using json array. My code is <...
0
votes
1answer
45 views

How to insert attributes into a WFS using OpenLayers?

So I have a web app that's running and is able to add points and lines to existing Postgis tables by getting data from Geoserver. I need the following one specific bit of functionality added: I want ...
1
vote
1answer
19 views

Leaflet: Style function does not work for point layer

I'm new to Leaflet and I'm not very proficient in Javascript. I've been trying to create a map visualizing a point layer with custom markers but for some reason the marker style as a function just ...
1
vote
1answer
480 views

Add an event listener on a Marker in Leaflet

I am using leaflet in order to render a map. I created a map with markers and i dont know how to implement the Event Listener 'onClick' on each Marker. My code var stops = JSON.parse(json); var map ...
0
votes
1answer
266 views

OpenLayers 3 doesn't want to draw programmatically a polygon

I am using OpenLayers 3 and i am trying to draw a polygon using given coordinates , but it doesnt want to draw it . var source = new ol.source.Vector(); var ring = [ [...
1
vote
2answers
83 views

GML to GeoJSON JavaScript parser

Is there a JavaScript parser to obtain GeoJSON from GML? I have found only Python and OGR solutions.
0
votes
2answers
402 views

Adding KML layers to ArcGIS JS API v4 (beta)?

I have been building a web application using ArcGIS JS API v4.0.Beta1. I am having difficulties finding out how to add KML layers to the scene. How do I add the KMLs? I have tried adding a new feature ...
0
votes
1answer
27 views

How to prevent adding/editing with AttachmentEditor?

I have a WAB (for developers, version 1.4, JS API 3.16) widget with an AttachmentEditor. Depending on the user's privileges (managed through MVC), I want to prevent some of the users from modifying ...
3
votes
1answer
561 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 esri.layers.FeatureLayer(...