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

Geocoder Rest API different results than ArcGIS Locator separator?

In our JavaScript API we use a Geocoder to find buildings and rooms on our campus. So we created a own locator, which can find room numbers, room names, types of rooms and buildings. In ArcMap the ...
0
votes
1answer
54 views

Openlayers 3 Cluster Strategy not projecting properly

As the title suggests, my Openlayers map is not displaying clustered points properly and I'm not sure why. My code is pretty simple and straight forward, here it is: JSfiddle: http:// ...
0
votes
1answer
35 views

OpenLayers-3 setting zoom so layers fit in map window

Is there a way to dynamically set the zoom level so that the current layers always fit within the width of the map frame on page load? Currently the zoom level is set statically such that when using ...
1
vote
1answer
45 views

How to add href to popup (infoWindow) in ArcGIS API?

I'm a newbie in programming. I'm trying to make a href link inside of arcGIS js infoWindow (popup). I don't know how to make this link work. The code that I'm trying is shown below. Could you please ...
0
votes
1answer
27 views

How to display the attribute table of the map using leaflet

I'm developing a leaflet application. for that i want to display the attribute table of particular wms layer using leaflet. Is it possible how can we do that? Thanks in advance.
1
vote
1answer
32 views

Using auto-completion/code-completion in OpenLayers 3?

I wonder how I can make use of code-completion with ol3? In debugging-tools like firebug I can use the completion but I haven't figured out how to use the completion in an IDE. ( for OpenLayers2 it ...
1
vote
0answers
16 views

Telerik ajax RadMap

I am using telerik RadMap with client side binding in the OnInitialize client event. Copied from the examples: function OnInitialize(sender, args) { var originalOptions = args.get_options(); ...
1
vote
0answers
38 views

Google maps not displaying until zoom in/out using openlayes2

I am using openlayers 2 for map displaying using following code, map = new OpenLayers.Map("mapDiv"); map.addLayer(new OpenLayers.Layer.Google("Google Streets",{numZoomLevels: 20})); ...
0
votes
1answer
23 views

how to customise toobar in Leaflet.Draw plugin?

I Down load the Draw.js and one ccs file to get use of the Leaflet.Draw plugin now need to customise the toolbar(i.e want only polygon and marker)
1
vote
2answers
21 views

Problem with MapServer WMS

Below code is showing the addition of mapserver file in openlayers 3, it is successfully showing me image in the browser but when i zoom that image it does not zoom. It comes back to originial view. ...
0
votes
1answer
45 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 ...
0
votes
1answer
40 views

Plotting GeoJSON data on map using ArcGIS API for JavaScript?

We are developing the portal in which we are using Arcgis javascript APIs.The requirement in our project is one of the weather provider is going to publish the webservice which will return the weather ...
0
votes
1answer
45 views

Convert Leaflet WMS layer to Leaflet GeoJSON layer

Using the Leaflet API I am adding a WMS layer through the L.tilelayer.WMS feature. This feature includes only a certain amount of options such as 'layers','crs','style' etc. Through the Leaflet ...
1
vote
1answer
43 views

Adding MapServer layer in Openlayers 3

As per i know that there is an API called Openlayers.MapServer in openlayers 2, which is used to show MapServer file in browser in openlayers. How can i add an MapServer file in Openlayers 3, as i ...
0
votes
1answer
41 views

How to highlight polygons around my geolocation?

I'm using the ArcGIS JavaScript API to create a map. I need to select/highlight polygons on my feature layers around my geolocation. I use in-build "LocateButton" function for geolocation. I looked ...
0
votes
1answer
56 views

OpenLayers 3 how to keep original image extent

I'm new at ol3, I'm trying to display my GIS view by updating my ol2 code. I created the projection and I can display my static image but I'm obliged to use local extent [0, 0, 1024, 968] instead of ...
0
votes
1answer
37 views

OpenLayers3 get feature request for more than one point in the same place

I created a map that brings up a popup overlay on click, the JSFiddle is here. The only issue I have now is if I have two points in the same location it. As you can see with the Birmingham point, ...
0
votes
2answers
44 views

featureClick won't work in cartoDB

EDIT: Link to repo containing the files. Open the index.html file in the imports and exports folders. I can get everything except featurecClick to work. My JS: window.onload = function(){ var ...
0
votes
0answers
22 views

StopPropagation not working in openlayers 3

I've tried the evt.StopPropagation() and evt.preventDefault() and return false; none of them works, is there any solution to stop event propagation of draw interaction in Openlayers 3.
0
votes
1answer
36 views

Combining Get Feature requests within OpenLayers3 Overlay

I have a map which currently shows one feature of a layer in an overlay popup when you click on it, as per this JSFiddle. As you can see, it currently displays the address within the overlay. I am ...
0
votes
1answer
22 views

Merging OpenLayers3 overlay with a get feature on click command that closes

I have this JSFiddle that is working fine on its own to select cities in the UK. I have then taken this OpenLayers3 example and put it into a JSFiddle. I am looking to combine the two so I have a ...
0
votes
2answers
89 views

Adding Multiple JSON Layers to Leaflet Map

I'm trying to put two different json files over a single map. One is drawn by zip code boundaries, the other is county. For some reason, I can't get my leaflet to work. IF someone can help point me to ...
2
votes
1answer
123 views

Sketch event in Openlayers 3 drawing interaction

For drawing Polygon in OpenLayers 2 we could use as follow: function drawEnd(){ ... } function putPoint(){ ... } function sketchModified(){ ... } function cancel(){ ... } var ...
2
votes
1answer
77 views

parse geoJSON using bounding box and Openlayers 3

I have used Openlayers 3 to give me a bounding box extent and then make a WFS call to Geoserver using those extents and returning a geoJSON and it has worked perfectly, giving me the features within ...
1
vote
1answer
56 views

Selection with OL 3.5.0 doesn't work correctly

I try a selection of object with OpenLayers 3.5.0 but she doesn't work correctly. I make a code like this when I click on the map : var map; var selection; function init () { /* SCU */ ...
0
votes
1answer
30 views

Retrieve polygon attribute when positionning a point - openlayers / leaflet

Using a client-side webmapping library (openlayers3 or leaflet), I want my user to be able to add one marker on the map. I will then be able to retrieve long/lat coordinates. From that, I want to ...
0
votes
1answer
20 views

OpenLayers doesn't display US Census-based GeoJSON Layer

I'm getting started with OpenLayers and all was going well until I tried to use my own GeoJSON file. I started with the Cartographic Boundary Shapefiles - Counties from the Census website, loaded it ...
0
votes
2answers
59 views

Mapbox Geocoding and Markers

I recently added Mapbox's Geocoder Control and it works wonderfully. I was wondering if anyone could tell me how I could have a marker appear at the location of the address that was searched for? ...
0
votes
0answers
28 views

How to set a src manually in OpenLayer 3?

I'd like to know how to set manually a src for add one or more icon. I've been finding a method in OpenLayer 3 to set it but, without sucess. For example, time ago I wrote the following code to set ...
0
votes
1answer
38 views

Multiple GeoJSON Layers

I have a leaflet map of the US and I would like to toggle between zip codes and county shapes. There seems to be no tutorials on how to achieve this in the documentation or an other forums I'lve look ...
0
votes
0answers
24 views

Using OpenLayers 3, the forEach method doesn't actually work, but only within this function?

I'm using OpenLayers 3 with AngularJS. I'm trying to make a factory such that I can generate an object for a tree control. My function (which doesn't actually do anything yet), looks likes this: ...
1
vote
1answer
53 views

Using forEachFeatureAtPixel without mouse

I've an HTML with a list of data's : <select id="searchinput" align="top" maxlength="120" name="zl_choix">(...) And the button search with this code: <input type='button' value='Search !' ...
1
vote
1answer
19 views

Openlayers 3 containsExtent

According to the API: ol.extent.containsExtent(extent1, extent2) checks to see whether extent1 is contained by extent2. With the following variables: extent1 = [-93, 44, -94, 45]; extent2 = ...
0
votes
1answer
57 views

Does Leaflet layer 'add' event not fire properly?

A popup won't open until the data file has loaded and the layer is added to the map - that's pretty obvious. I figured it would help to bind it to the 'add' event - but that never fires: var l1 = ...
-1
votes
1answer
24 views

ARCGIS Javascript query throwing error

Below are two screen shots, one for when I am querying on arcgis server and the other when I am querying the same server through javascript. For some reason, javascript querying is throwing error for ...
1
vote
0answers
44 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 ...
2
votes
2answers
49 views

OpenLayers 3: get the osm_id of the closesd point

Is there a way to get osm_id of the point that is closest to a given coordinate. The idea is to click on map and get the osm_id map.on('click', function(event) { ...
0
votes
1answer
29 views

Esri JavaScript API ApplyEdits update not working

When I attempt to applyEdits as an update to my application I receive the following errors: I uploaded my most recent revision on Github at: ...
1
vote
0answers
31 views

Wrapping WTMS image & map extent

I'm using OpenLayers 3 (both v3.4 and v3.5) to display a tiled image from a NASA WMTS server and have a question about using the layer wrapX parameter on a global map. When I set wrapX=true in the ...
1
vote
2answers
127 views

Load a file geojson in OpenLayers 3

Before, to load my .geojson, I had a php file who generated the code : var vector_limite_comm_white = new ol.layer.Vector({ source: new ol.source.GeoJSON({ url: 'geojson1.php', ...
1
vote
1answer
47 views

Popup filter with OpenLayers3

When I load my map, I load my vector overlay with this code : var vector_overlay1 = new ol.layer.Vector({ source: new ol.source.GeoJSON({ url: 'json.json', defaultProjection ...
3
votes
1answer
50 views

Dashed lines in OL3?

I know this question has been asked earlier here . But the solution proposed is not working. I was unable to comment on that due to reputation points so had to post this question. My code is : var ...
1
vote
2answers
36 views

Disable feature popup when creating new simple marker

I have a leaflet map with some loaded polygon layers. When using the Simple Markers plugin, i would like to create a new marker on top of an already existing polygon feature, but i can only click the ...
1
vote
2answers
41 views

OpenLayers3: How to draw line with beetwen two points

I've following code: var source = new ol.source.Vector(); var vector = new ol.layer.Vector({ source: source style: new ol.style.Style({ stroke: new ol.style.Stroke({ color: "#ffcc33", ...
0
votes
1answer
53 views

How to prevent Leaflet from loading tiles from server

I am currently developing a couple of solutions with LeafletJS and it frustrates me that my Firefox browser loads the tiles from the server (e.g. Stamen or OSM) and not from cache every time I reload ...
0
votes
1answer
37 views

Trying to add a WMS layer to Openlayers 3 but not showing anything

I have started with Openlayers 3 recently and I need to add a layer from an own WMS. I have been trying this: map = new ol.Map({ target:'map', renderer:'canvas', layers: layer, view: ...
4
votes
1answer
70 views

How can I select a feature in Openlayers 3 by right click it?

I'm trying to selete / delete a feature by right click it on Openlayers 3. I know I have map events singleclick/click/dblclick and I also know I can use the ol.interaction.Select for delete. In ...
1
vote
1answer
69 views

How can I clear a vector layer before drawstart in openlayers 3?

I have a vector layer in OL3 which I want to auto clear when drawing a Point feature (which means there is always max 1 feature in the layer). Problem is that when I listen to drawstart ...
2
votes
1answer
114 views

OpenLayers 3.5 WFS-T update to GeoServer 2.7 raises StringIndexOutOfBoundsException

I am using ol.format.WFS.writeTransaction() (OL3.5) to generate WFS-T statements. This works well for insert and delete. The problem is with the update statement. Any update statement returns ...
0
votes
1answer
35 views

moving user by gps and show interested points

Is it possible in a Web application with google maps, to use a user his mobile gps and when move and is near on an interest point such as hotels, interested point i have stored in a Postgresql ...