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
1answer
117 views

GeoJSON properties not displaying in popup-leaflet GeoDjango

I want to show the markers in different colours based on column(rastervalues) values in leaflet. My geojson data is {'geojson': "[{'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'ge ...
2
votes
0answers
36 views

How to display join query results on a sublayer in CartoDB.js application?

I'm working with my first CartoDB.js application. I created a visualization on the app using cartodb.createVis('map', visjson_url, opts); The app has two layers, base map and data layer. the data ...
0
votes
0answers
30 views

Apend child to a layertree with

I'm building an application with GeoExt 2 and I'm trying to create a tree layer with some grouped layers. I saw somewhere that you should set the node type to "gx_layer" to get the desired effect. ...
2
votes
1answer
158 views

Setting multiple WMS layers over basemap of OpenLayers 3?

I'm developing a web-based application. In this project I'm trying to create multiple WMS image layer over the map with legends. As you can see below its showing the WMS layer over its basemap . ...
1
vote
0answers
19 views

Customize QGIS Leaflet webpage [closed]

I created a webpage QGIS map using the Leaflet plugins, how to customize , put mouse over, then features will zoom automatically while you mouse on click on the map features, and also automatically ...
0
votes
0answers
61 views

GeoServer WMS layer does not show with use of OpenLayers

Goodmorning, For a few days i m trying to get a WMS from geoserver to a website using openlayers. But everytime i get pink rectangles. I know that there are a lot of this thread already but i dont ...
1
vote
0answers
55 views

First click layer selector doesn't work in CartoDB?

I'm working on an interactive map using CartoDB built of Leaflet.js. I added a layer selector which works fine after the first click. The first click just doesn't work, if I click the selected layer ...
1
vote
2answers
61 views

Grouping polygons and other geometrical shapes

My situation: I have administrative areas marked with polygons Many areas have many, many, many islands I need main area and all it's islands to change color when any of the islands or main is ...
1
vote
0answers
29 views

Openlayers only keeps the first drawn feature

I would like to save all my drawings on a vector layer stored in a PostgreSQL database and shared by GeoServer for a web mapping application. I wonder why this piece of Openlayer/JS code (as found ...
2
votes
0answers
107 views

Caching Google Map markers/coordinates

I have thousands of markers - I need to cache them and use show-hide tactics to only show like 100 markers at once but I have trouble with caching. Adding all single markers/points to an array and ...
3
votes
2answers
72 views

Vector under OSMbuildings

I would like to display a circle object under the OSMbuildings layer with OSMBuildings . I was trying to change zIndex, bringToBack(), bringToFront() but it doesn't work. I don't use my own GeoJSON ...
2
votes
0answers
69 views

Single button click to bind three javascript functions

I have created cascading dropdownlist for district taluk and villages when i click search button it must zoomed to all the three layers.but i assigned the filter value for village so that it will zoom ...
1
vote
1answer
46 views

OpenLayers 3 Vector layer

Can i add two sources to Vector layer, i want regular feature source, and geojson source? Maybe can I do something like: var layer = new ol.layer.Vector({source: VectorSource, GeoJsonSource}); My ...
2
votes
0answers
53 views

Removing individual markers from map

I have a map with several moving markers on it and have been trying to remove each individual one when their respective animation ends. I am using Leaflet and Leaflet's plugin Leaflet.MovingMarker. I ...
1
vote
0answers
60 views

Plot a bubble chart in d3.js by giving an local geojson file as an input

This is the content in my geojson file { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "profit": 326, "npa": 174.000000 } }, { "type": ...
1
vote
1answer
191 views

Mapbox GL JS Geocoder marker

I'm still a js noob. I am currently developing a map using the Mapbox GL JS API with their geocoding plugin, however, I'm am not seeing any examples of adding a marker after the return. I did find ...
0
votes
0answers
17 views

GEOEX2 tree add openlayers

HI I have a question if anyone can help me to add a layer of "new OpenLayers " to the tree ?? my code tree? I know how to use baselayer and overlaylayers but do not know how to add some different ...
1
vote
1answer
151 views

Leaflet marker cluster not working on GeoJSON with MultiPoint geometry

I have a GeoJSON file of fly tipping incidents that I have managed to display on a basic Leaflet map. I am now trying to incorporate the marker cluster plugin, but I am having problems as it does not ...
0
votes
0answers
32 views

Extent goes too far

I have a custom tms tile loaded in a Open Layers 3 map. This tile has a bounding box, effectivly being the 4 corners of that tile. When I set the extent of the TileImage and View, I can only drag each ...
1
vote
0answers
30 views

How to perform Zoom to ImageMapType in Google Maps API?

I am adding ImageMapType on Google Map using Google Maps API. Whenever ImageMapType is added then Map should zoom to that ImageMapType. I have read the ImageMapType reference and found out that any ...
1
vote
1answer
36 views

Error in function when a class constructor called twice in ArcGIS API for JavaScript?

I want to create multiple search widgets using the "esri/search module". The second search constructor (for var geosearch) is showing an error that it is not part of function. Is it possible to use a ...
1
vote
1answer
39 views

Toggling Leaflet Legends

Currently trying to use the following code to add and remove Legends as a result of an overlay being added to the map. Getting no error messages in browser but still doesn't seem to be working. ...
0
votes
1answer
39 views

Use QuadTree for better complexity on search features

I want to improve the complexity of search specific feature when using this function : map.forEachFeatureAtPixel(e.pixel, function (feature, layer) { // Do something.. }); The improvment ...
0
votes
0answers
69 views

Loading local tiles OpenLayers

Theses days i load local tiles, chrome doesn't go so well with letting you loading local tiles , because of secuirty problem as CORS etc.. but there is a way to cross this problem and let chrome ...
0
votes
1answer
57 views

Custom Leaflet Legend

Trying to create 9 separate leaflet legend variables for the 9 different overlays (graduated colour chloropleths) I have on a leaflet map. Each overlay will have 6 classifications of colour dependant ...
1
vote
1answer
168 views

Using OpenLayers 3 Feature onclick event?

I looked for a way to fire onclick event and I found Adding event handler to feature in OpenLayers 3? at Stack Overflow. I undestand from this question is that there is no event onclick to features. ...
1
vote
2answers
88 views

Appending Data to FeatureLayer in ArcGIS API for JavaScript?

I am working on a web app where I am making calls to a database api and it returns a JSON Object. I've managed to do so successfully as well as any manipulations that need be done. Is there a way to ...
1
vote
1answer
85 views

why doesn't show feature on map

this is fiddle Link.Feature doesn't show on map when it has been like this code : var featureVectorLayer = new ol.layer.Vector({ source: featureClusterSource, style: new ol.style.Style({ ...
3
votes
1answer
61 views

OpenLayers creating Marker Vector Layer

I have seen over the internet a lot of examples of using Features paste them into the Vector layer and after that insert the layer to the map . basic example: <script> var iconFeature = ...
0
votes
1answer
52 views

Pushing value from text input to search widget in ArcGIS API for JavaScript?

I am developing a surveying app that among other things, asks the user for their address/closest street intersection, and then later asks them add features around they're "neighborhood". I would ...
0
votes
1answer
73 views

OpenLayers 3 how to get only the modified feature?

I have a problem with OL3 and it's ol.interaction.Modify Event. Whenever I modify a feature, just one, it returns all features inside the layer. Currently I have 77 features (polygons) and I can ...
0
votes
1answer
40 views

Timing external javascript with ArcGIS Online embedded map

I have an ArcGIS Online time-enabled map on a webpage. When the map loads, the time slider begins moving. I would like to have a chart that moves along with the time slider, but I don't think ESRI has ...
0
votes
1answer
45 views

Loading Scene from ID into ArcGIS JavaScript API 4 Beta: “SyntaxError: Unexpected token ILLEGAL”

I have created a city engine web scene,and I am trying to display the 3d-visualisation view on sceneview by using the portal Item Id of my webscene. But I am getting "SyntaxError: Unexpected token ...
0
votes
0answers
88 views

JavaScript API Local Install not working

I have installed the JavaScript API locally to use in a developer environment with no internet connection. The issue I am encountering is when I attempt to view the sample service hosted by ArcServer ...
1
vote
1answer
195 views

Cesium JS Line Length

Is there a method to return the length of a Cesium JS polyline, in real-world units? For example, if I create a polyline: var orangeOutlined = viewer.entities.add({ name : 'Orange line with ...
2
votes
1answer
20 views

Is there an app/plugin combination that suits the tracking of a public bus

In a town near where I live there is a public bus that runs a circuit about once an hour. I was asked if it would be easy to track the bus (presumably via an android device on the bus) and put the ...
0
votes
1answer
34 views

Selected Feature not highlighted in map of CMV (Configurable Map viewer)

I have copied the whole code of Find widget and added it into another widget. First widget is working fine and highlighting the feature(creating feature from geometry), second widget is also working ...
3
votes
2answers
104 views

Move leaflet polygon to given position

I have a circle and a polygon that I'd like to move to the user's local position. I managed to move the circle latLng but I can't find a way to do the same thing with a polygon. Can someone help me ...
0
votes
1answer
49 views

OpenLayers line string not displaying

I am trying to show a line on map using Open Layers 3. Here is my code so far: <script type="text/javascript"> var map = new ol.Map({ target: 'map', layers: [ ...
1
vote
0answers
27 views

WebMapping Charts Overlap Issue LeafletJS

I am a beginner in webmapping development using LeafletJS and JS. I am the owner of the website built under LeafletJS. I have faced some problems with charts overlapping. On the right top of the map ...
0
votes
0answers
104 views

leaflet+canvg= leaflet svg elements on canvas

I want to create png file from leaflet map. I use html2canvas library, and leaflet map tiles and other elements convert to png great, but not svg-elements(offsets). I know, that there is some code to ...
0
votes
1answer
60 views

Adding Network Analyst widget in Configurable Map Viewer (CMV)

I need to add a widget in Configurable Map Viewer (CMV), which will return me the nearest facility of parcel number entered in the box. Which is to be done by Network Analyst in ArcMap and i have ...
1
vote
1answer
176 views

D3 - Loading data from JSON doesn't work

I'm starting to learn D3 and it seems like a powerful framework. I'm trying load the data from json. I can see data but nothing happen after loading data into D3 library. There are no error messages ...
1
vote
1answer
66 views

Openlayers 3 - Create symbol like openlayers 2 -> OpenLayers.Renderer.symbol.anySymbol

In the Openlayers v2 I could add symbols like: OpenLayers.Renderer.symbol.pointToIcon = [100, 70, 20, 50, 42, 70, 20, 90]; How can I do it with Openlayers 3 ? In the openlayers 3 I can use this ...
2
votes
1answer
76 views

Map scale factor when converting from Mercator to Equirectangular

Lets say I have a map in Mercator projection, and I know top and bottom latitudes: topLatitude = 80; bottomLatitude = -55; I also know width and height of a map: width = 800; height = 500; I want ...
0
votes
1answer
64 views

Get JSON WebMap from ArcGIS JavaScript API Map object [duplicate]

I'm trying to get a WebMap object (as JSON) from a JavaScript Map object in the ArcGIS JavaScript API. Is there any way to do this within the API, without using ArcGIS.com? Ideally something like: ...
1
vote
0answers
66 views

Converting circular structure to JSON error

I am trying to create a feature service from a feature collection. Prior to that, a query was performed and a featureSet was produced. However, I get the circular json error when I try to create a ...
0
votes
0answers
25 views

how to know which marker clicked

I have many markers on my mapbox map. And how to know which marker is clicked. Here is my code function zoomToFeature(e) { console.log(e); } function onEachFeature(feature, layer) { if ...
1
vote
1answer
66 views

How to force EXT JS - GeoEXT to show legends with OpenLayers?

My sld is applying as below function cusMap(strSld_body,talukaName,name){ console.log(strSld_body); var query = new OpenLayers.Layer.WMS.Post(name, geoServerURL, { LAYERS : ...
1
vote
1answer
173 views

TypeError: jsonFeatures.map is not a function using fuse-search in leaflet js

Trying to implement the fuse-search functionality in a leaflet map, however I am getting a TypeError: jsonFeatures.map is not a function. Here is my javascript part of the code: var map = ...