All Questions
Tagged with array javascript
8 questions
0
votes
1
answer
5k
views
Google Maps API - .seticon size based on zoom level
I did look up this question on here but the answer used 'new google.maps.MarkerImage(' which has been deprecated, and I can't get anything else to work. I think it has to do with my array of markers, ...
0
votes
1
answer
700
views
multipolygon: switch coordinate arrays with javascript/jquery [closed]
I have a geojson with multiple arrays, such as:
[[10.77932197941255,52.03584196145097],[10.77932197941255,52.03575906909681],[10.779636389761993,52.03575906909681],[10.779636389761993,52....
3
votes
2
answers
6k
views
Extract geojson 'properties' dynamically with mapbox gl
I have an interactive map based on MapBox WebGL. I have an 'on click' function which is returning all information on data layers at that location (lovely).
For each object I am trying to pull out ...
1
vote
1
answer
657
views
Dojo Promise/All Array Not Populating InfoTemplate in ArcGIS Javascript
Using dojo/promise/all I'm attempting to populate an infoTemplate with results from a queryTask which runs later in the script.
Our app returns an XY value from a geocoded address search and queries ...
1
vote
0
answers
612
views
OpenLayers 3: Dynamically or batch add layers from user folder
I would like to dynamically load all layers (KML, for instance) from a user's folder to a group map. This likely requires an iteration that searches the folder and adds the layers to the users' map.
...
2
votes
1
answer
6k
views
Loading GeoJSON data into an array with OpenLayers 3?
I'm using OL 3.6 with no additional plugins.
Is there a way to store points from a GeoJSON file to an array?
I'm thinking it would look something like this(?):
var features = new Array(...
2
votes
2
answers
5k
views
How do I sort a geoJSON feature collection alphabetically by a property value?
I am trying to sort the objects in a geoJSON FeatureCollection alphabetically by the values of one of their properties. How do I get to the nested object properties with JavaScript? I have tried using ...
0
votes
1
answer
131
views
trying to create array reader for feature fields
I am trying to create a functionality that creates array data for any layer that user selects. Now I am able to get all the data in the feature layer that the user selects but I am having some trouble ...