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
0answers
59 views

Populate list from arcgis server service in JQUERY javascript aplication instead of DOJO?

I would like to populate a list on a select combobox using jquery with data from an arcserver service.I'm wondering if this is possible and if so how i would implement it. I'm using the esri ...
0
votes
2answers
504 views

interactive map inside a HTML5 canvas

I'm writing a map based simulation using the HTML5 canvas and javascript. the mechanics of the simulation are working well but to be application to real space is not progressing at all. I'm ...
1
vote
1answer
156 views

mapbox - how to generate a random coordinate inside a polygon

I've seen the leaflet plugin for mapbox which finds the polygon within which a specific point / coordinate lies, but how would I do the opposite - generate a random point / coordinate within a ...
1
vote
0answers
30 views

WMSGetFeatureInfo from two WMS layers with different parameters

I have a map with two layers, which can (and almost always do) overlap. These layers are WMS from GeoServer using SQL views (POSTGIS). They use the same query but with a different parameter. My hover ...
0
votes
0answers
75 views

Presenting specified country only based on latitude and longitude data passing by d3 user?

I am using d3/topojson and I'd like to color (or present) only two countries where two users are located.(The location of a user is represented by latitude and longitude.) I am modifying code from ...
1
vote
0answers
45 views

gdallocationinfo used in javascript with node-gdal?

I've been scratching my head for a white trying to figure it out if it's possible to get pixel information from my rasters using gdallocationinfo in javascript. I found node-gdal, but after reading ...
0
votes
1answer
29 views

Embedding a leaflet map onto a blog

I've created a leaflet map using maptiler. It's created a leaflet HTML file, which links to PNG images on my desktop and displays the image. How do I embed the map onto a blog such as tumblr?
0
votes
1answer
255 views

How to use leaflet-search for a geojson feature property?

All, I'm trying to use the leaflet-search plugin to search for a specific geojson property (i.e. 'Name'). The trick part of this is I want to perform a search on a Geojson file thats loaded in via ...
1
vote
0answers
20 views

Geoprocessing in web worker

I would like to use a geoprocess using the esri js api from inside a web worker, can this be achieved? I didn't manage to pass the geoprocessor to the web worker because it seems that you can't pass ...
1
vote
0answers
94 views

Esri Javascript Point Clustering Map Size

I am using Esri Javascript API to display points on a map that are pulled from a json object. Everything is working great, although i seem to be having issues trying to figure out how to get the map ...
0
votes
1answer
110 views

Get GeoJson feature by ID and zoom on entity

I have got a leaflet map with Geojson layers : I use jquery Autocomplete to search an entity by name or id, I have no problem with that. I need your help because I'm not able to refer to a specific ...
0
votes
0answers
41 views

get all routes between two points

How can I see all the entire routes will be between two points in yandex map api ? drawRoute: function (targetX, targetY) { myLocation.then(function (loc) { ymaps.route([ ...
1
vote
0answers
63 views

Hide/filter features from Openlayers 3

Setup: OpenLayers 3 Description: I have a map and I need to draw GPS points (10000+) to the map points have extra attributes on them (id, datetime, name etc.). I also have to draw path between ...
2
votes
2answers
768 views

Take data (points) from MySQL to Leaflet Map using PHP and Ajax

I have records with lat and lngs in a MySQL database and I want to add them to a Leaflet map as markers. I have tried a couple of methods but none seem to work. When the webpage opens the map doesn't ...
0
votes
1answer
109 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 = [ ...
2
votes
0answers
85 views

Has anyone implemented the leaflet.shapefile plugin?

I'm trying to implement the leaflet.shapefile plugin to enable a user to upload a zipped shapefile and overlay it on my webmapping site as can be done in the demo version of the site. ...
0
votes
0answers
32 views

Calculate maneuver details using coordinates

I want to calculate the maneuver details (turn-left, turn-right, etc) from the coordinates array returned by google roads API (I'm using JavaScript). I know maneuver details only returned by google ...
1
vote
2answers
150 views

Openlayers 3 cant delete feature

I am using OpenLayers 3. Here i found how to create and read drawn features. Now i am trying to delete a feature after i draw it on the map. I have tried several methods , but it doesn't want to ...
0
votes
0answers
107 views

How to add Marker to WMS layer coordinates?

I have this code in my html file <html> <head> <title>OpenLayers Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> ...
0
votes
0answers
29 views

OpenLayers 3 catching moment before drawing and getting info

I am using OpenLayers 3 and got blocked. My goal is to draw different objects on map , the retrieve info about the created object. Using the documentation i found how to draw different elements , my ...
1
vote
1answer
42 views

Assigning OpenLayers Layers to different layer trees 'automatically'

I am developing an OpenLayers 3 web application were I would like to incorporate multiple layer trees. Instead of manually adding each layer to a layer tree I would like to do it using the method ...
1
vote
1answer
50 views

Shared edge between two geojson polygons

I am interested in getting the coordinates of a shared edge (if exists) between two geojson polygons. I am (currently) using turfjs and geojson-equality libraries I tried this but I consider it quite ...
0
votes
1answer
43 views

ArcGIS Portal homepage altered without html change

After changing the region in rest services the carousel of images has stopped rotating, the white banner at the top has disappeared and icons at the bottom have shifted. Seems like a page size setting ...
0
votes
1answer
41 views

Can I set a max zoom for a search in CartoDB.js

I made a map with a search box that is related to a country. Entering a postal code will zoom completly in to the asked postal code. I would like to center the map to this asked postal code, but not ...
2
votes
1answer
109 views

Cartodb add basemap switcher

I currently have a map created entirely in the CartoDB editor, including custom map. For some reason it doesn't allow you to add an attribution in the editor but thats a different problem. So my map ...
1
vote
0answers
62 views

How do you add a pop up to a Mapbox.js feature Layer

I am trying to get popups to work with a featureLayer in MapBox.js, to no avail. Here is my code: var pliOptions = '<h2>A ferry ride!<\/h2>' + '<p>Test Data<\/p>'; ...
3
votes
1answer
706 views

Submit form information from a leaflet popup to MySQL table

I have a leaflet map and I want to have the user fill out a form in a leaflet popup and upon clicking the 'submit' button - the information in the form will be inserted into my MySQL database. As a ...
2
votes
1answer
87 views

Leaflet polygon (multi polygon) to CQL equivelent

I am using leaflet with geoserver. I want to set up a CQL filter to do an intersect but having an issue with getting the geometry from leaflet polygon to cql polygon. For instance, the feature has ...
0
votes
0answers
109 views

Missing Leaflet icon with Html2canvas

I am using Html2canvas to capture images from a map viewer and Leaflet to add custom icon marker. The origin of the marker is at the top-left corner so when it is added to the map, the geographic ...
0
votes
0answers
58 views

Is there an open source API I can use to re-write javascript code for a web app that uses Esri's JS API?

Is there a way to "translate" Javascript code from a web app that depends on Esri's Javascript API into an Esri-independent web app? Also, can this be done if the app was built with Esri's Web App ...
0
votes
0answers
149 views

How to load GML to OL3?

I'm trying to load gml into openlayers3 there is the code: <html> <head> <title>Vector layer example</title> <link rel="stylesheet" href="ol3/ol.css" ...
0
votes
0answers
37 views

queryFeatures Error Timeout

I have the following scenario FeatureLayer.queryFeatures in javascript sometimes executes the query and sometimes gives Timeout exceeded. How to handle the problem? Any suggestion
0
votes
0answers
59 views

Drawing lineString in Google Earth API

I am able to draw a Polygon on the Google Earth API which is integrated in my website but i have to draw a lineString. Does anybody can help me? Here is the code i use to draw the polygon: function ...
0
votes
2answers
197 views

Leaflet MapBox addlayer

I'm newbie in coding and I'm trying to modify some downloaded GitHub code to make customized application and display my data. AddLayer function is making me desperate. I'm trying to add data from ...
0
votes
0answers
32 views

ArcGIS map breaking in the web page

We are embedding the arcGIS map in to a web page in 1/8th part of the web page in right-hand side upper corner. We are using angularjs framework to develop this portal.We are are going to draw symbols ...
1
vote
1answer
64 views

OpenLayers 3 right click event

I am trying to listen to right mouse click , i tried "rightclick" as in documentation says , but it doesn't work. Can any one say why it doesn't work ??? map.on('rightclick', function (evt) { ...
1
vote
2answers
39 views

How do I add a radius line from the center of the circle to a point on the cricle

The following code adds a circle of given radius to the graphics layer on an ArcGIS map. How can i add a line that joins center of the circle to any point on the circle to the graphics layer. ...
1
vote
0answers
84 views

Having trouble to exportmap in OpenLayer3

I'm trying to export the map, but I'm always getting the same error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. The funny is that It works the ...
0
votes
0answers
113 views

Selecting Option of Select Tag by click event using OpenLayers?

I have an OpenLayers map which several POIs in it. Now I want, that the user can click on the POIs which starts an event where it posts the pointFeatures into Input Fields of the HTML the most of ...
0
votes
1answer
154 views

How to filter polygons in Leaflet using range slider

I have a map I'm working on with Leaflet that displays a choropleth of zip code-level data. One piece of functionality I would like to add is to allow users to use a range slider to filter out ...
2
votes
1answer
100 views

Node JS and Tilestrata to serve SRTM Tiles

Update (Aug. 16, 2015): I emailed one of the authors and it turns out that tilestrata-disk wasn't meant to be used as a "provider" in their system. No wonder! Here's what Brian Reavis said about how ...
0
votes
1answer
62 views

Having more than one Openlayers layer switcher associated to one map

I am developing an OpenLayers 3 web application were I would like to incorporate more than one Layer Tree alongside my map. I have this JSFiddle set up that it has a map with multiple layers and one ...
3
votes
1answer
65 views

mapbox - disabling viewing of unrendered white tiles outside of the map

I'm looking to disable being able to move the map in such a way that one can move outside of the map area: I don't want to be able to see the surrounding white areas when the map is dragged. I have ...
0
votes
1answer
29 views

cesium.camera.flyTo can't be called twice inside a <script> tag

Is cesium.camera.flyTo() function a deferred javascript function? I mean this function is executed only after <script> is parsed. So what if I have to call cesium.camera.flyTo() more than once ...
4
votes
1answer
63 views

Determine if point lies within shape?

What would the best method be for determining whether an address (geocoded to a lat/long point) lies within a given shape in a GIS shapefile. Best case scenario, we are given a boolean result, that we ...
0
votes
0answers
34 views

Openlayers Control.SelectFeature makes marker click listeners stop working?

I'm been having some trouble with openlayers. I have a map with several markers being added dynamically to a marker layer called markerLayer. Each marker has a click listener that opens a popup window ...
0
votes
0answers
81 views

redraw canvas when add new overlay?

Good day! A little problem: how to redraw canvas when I add overlay layer? Firstly load osm map, then creates canvas. So when I push the botton and add another layer it looks like sandwich and canvas ...
0
votes
0answers
17 views

style parameter from geoserver [duplicate]

I want to make a syle by taking field_1 parameters of geoserver this is the script var style_titik =( if (feature.get('field_6') === '4') {var b2 = new ol.style.Style({ image: new ...
1
vote
0answers
105 views

dynamic legend for tiles in Leaflet

Good day dear professionals! I have a little problem. I started to learn javascript and leaflet not so much time ago, and now I can work with layers, but creating controls that I need is to hard for ...
0
votes
2answers
61 views

Style a layer based on an attribute from geoserver in OpenLayer3

I want to take attribute from field_1 in geoserver to show at open layer 3 this is the script var style_titik =( if (feature.get('field_6') === '4') {var b2 = new ol.style.Style({ image: ...