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
6 views

Arcgis Editing toolbar only works for Edit.Vertices and does not allow move, scale or rotation

Within my code I have a button that will allow the user to select a feature. Once this feature is selected a method fires and the editing can be carried out on that feature. The code that is ...
1
vote
1answer
19 views

Make the Marker Appear For each Point

How can I make marker Icon appear for each point. I added the geoJSON with 65 points and have all been validated. However the icons appeared as a broken png. I proceeded to add a png I called in an ...
0
votes
1answer
15 views

Confirm Connect WMS Feed

We currently use Pitney Bowes Confirm Connect for our highways inspections. We are trying to use our own WMS feed instead of the default Bing Maps to allow us to have access to information such as ...
0
votes
2answers
27 views

Add logo to a map using Leaflet/Mapbox

I am currently trying to learn how to use Leaflet / Mapbox (and JS, to some extent) by creating custom test maps. My problem is that I want to add a logo on the top of my map, with absolute ...
0
votes
0answers
16 views

Leaflet - Edit Feature Attributes in popup [closed]

I'm looking to make attributes shown in my click popup editable. I've been piecing together from Leafletjs and many search sources but have hit a wall. GitHub Index Here is a sample I've found which ...
0
votes
0answers
17 views

ArcGIS Online - getting token through JSON

I'm new to using JSON and think I vaguely understand it. This may well be more of a Javascript question than a GIS-related one. Basically, I've got a map on ArcGIS Online and I'm looking at putting ...
1
vote
1answer
19 views

Openlayer3 icon mouse hover animation

I am using openlayer3. And using icon as a marker. So my requirement is that when I hover on marker, it should increase in size to show that it is hovered. Till now I have success to detect the icon ...
1
vote
0answers
8 views

GeoRSS in Openlayers 3

I have used GeoRSS files successfully in openlayers v2.x but I am not able to find how to handle these GeoRSS files in Openlayers v3.x. Please help if anybody has successfully tested the usage of ...
1
vote
1answer
23 views

How to perform dynamic filtering of multiple check boxes using cql_filter and openlayers javascript?

I have multiple checkboxes for example hospital checkbox where hospital datasets get displayed when checked, phase 1 check box where phase 1 hospitals get displayed when checked and grade A and B ...
0
votes
1answer
20 views

Multiple Selection with OL2

I created a map with some marker which can be selected and have them name appears in an external field. But i even if i am able to select multiple marker on the map ( shift command ), only one name ...
0
votes
0answers
15 views

xml parsing from url in javascript (OpenLayers)

I have a question concerning parsing an XML url. I have a geocode function implemented in my javascript: function findAddress(){ var address = document.getElementById('address').value; var ...
0
votes
0answers
16 views

calculate new point given distance, bearing, lat and lon Right lat result but wrong lon

I have been trying to get this program to work right, but somehow, although my formular seems right, my calculation for the longitude is off. I want to make a plugin for qgis with this code, or find ...
0
votes
1answer
20 views

draw polygon is not getting end

I have tried the draw polygon, and followed by example i have done like below code <!DOCTYPE html> <html> <head> <title>Measure </title> <script src="...
0
votes
2answers
22 views

OpenLayers : Draw shape from external geojson file

I am trying to draw a shape (airplane) from external geojson file. Said shape uses data from 2 object structures inside the geojson file. I can load both shapes separately, but I can't append/join ...
0
votes
0answers
12 views

How to extend Geocoder (Nominatim) with own/distinct address

I want to extend my Geocoder for my leaflet routing map. I am using leaflet routing machine and nominatim geocoder to implement routing and geocoder. Now my goal is: I want to put an a specific ...
0
votes
1answer
23 views

Openlayers3 Add click/hover action on ol.layer.Vector

With drawService function, I add on my map dome circle vectorLayer. How can I set a click (or hover) event on the added vectors for displaying their long lat coordinates? function drawService(...
0
votes
1answer
19 views

leaflet - change routing vehicle when clicked on button

I want to change the routing vehicle when clicked on a button. The default routing vehicle is "car" ("auto") when clicked a button routing vehicle should change to "foot" ("pedestrian"). I am using ...
0
votes
1answer
50 views

Mapillary JS: mapillary-js storytelling [RouteComponent] hangs

I'm trying to use Mapillary JS (rif. http://blog.mapillary.com/update/2016/02/10/mapillary-js.html), to build a storytelling following this sample http://bl.ocks.org/knikel/630c2d6fa37a8a0e082a. This ...
1
vote
1answer
26 views

Set background color and opacity for a WKT layer vector in OpenLayers3

I have this function: function drawLayer(wktRegion, name,colour = "transparent"){ var format = new ol.format.WKT(); var feature = format.readFeature(wktRegion); feature.getGeometry()...
0
votes
1answer
39 views

Can't load geoJSON files in Leaflet layer control

First of all, I have to sorry about my English. May not be perfect. I have a problem with show my geojson files into layer control. I read every topic about that on this side, i have tried on a milion ...
2
votes
1answer
25 views

change width of outline for leaflet map depending on zoomlevel

I want to change the outline of a polygon depending on the zoomlevel. I thought it's easy to implement but there must be something wrong. My polygons dissapear when I try it with this code: to get ...
0
votes
1answer
130 views

How to load tiles from geopackage properly using OpenLayers3 and GeoPackage-JS

I am trying to load tiles from a geopackage (rivers.gpkg sample) using the latest version of OpenLayers3 and the GeoPackage JS library (Project-Link). My current try looks like this: As you can see ...
0
votes
0answers
6 views

How to get features on the map at (x, y) position using OpenLayers 3? [duplicate]

I'm trying to get every feature at (x, y) position using this code : map.on('singleclick', function(e){ var features = []; map.forEachFeatureAtPixel(e.pixel, function(feature, layer) { ...
0
votes
2answers
32 views

Leaflet Sidebar - set content depending on clicked GeoJSON feature

My goal is to set the content of the sidebar depending on what GeoJSON feature was clicked on. For example when clicked on polygon A the content of the sidebar is: "This is A" and when clicked on ...
1
vote
2answers
21 views

Add Leaflet layer based on variable with the same name?

I have a geojson layer named mapLayers and another geojson layer named lmiCounties, with a dropdown list with an item with the id lmiCounties. I want the second layer added to the first, which has ...
0
votes
1answer
24 views

Area measurement with out geodesic in openlayers3

<!DOCTYPE html> <html> <head> <title>Measure example</title> <!--<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>--> <script src="...
0
votes
1answer
35 views

CartoDB- popup window not working

I am working on a project, and I have not worked with cartodb long, but there is something wrong with this code. It is supposed to display a little pop window showing the school district for that ...
1
vote
0answers
23 views

ESRI ARCGIS Flex - Javascript migration

We have a current architecture of FlexViewer and part ArcGIS Flex API based custom tool that's sitting on a IIS server to draw zones. ESRI is migrating to ESRI Javascript API and we have two options ...
0
votes
1answer
27 views

Globe not displaying in my cesium application

Below code doesn't display the default cesium globe.When i run my file, its just a black background. Why is it so? <style> @import url(../templates/bucket.css); </style> <div id="...
3
votes
1answer
26 views

GEOJSON - Transition to cartogram

I have 2 GEOJSON files - 1st contains map of indian states ('India-simple.GEOJSON'), and the second is cartogram based on Gross State Domestic Product of that state ('India-cartogram.GEOJSON'). I ...
0
votes
0answers
12 views

Creating a CQL filter function in Openlayers 2.10

Im having trouble with creating a CQL search function of my geoserver wms in OpenLayers. Im am running a 2.10 version of OpenLayers. Im a rookie in coding, so I'm trying to implement this example: ...
1
vote
1answer
29 views

Selection with circle using JSTS

Anybody know if there is a possibility of using JSTS library with OL3, to create a circle for selecting marker in a map. Actually i succeed creating a polygon which can select markers and return the ...
0
votes
1answer
49 views

Select one feature of multiple overlapping features (here polygons) on a Leaflet map

I have a map with multiple polygons rendered on it which can overlap eachother. I use leafletPip.pointInLayer(point, layer) from https://github.com/mapbox/leaflet-pip for determining which polygons do ...
0
votes
1answer
24 views

buffer in geoserver

im new in geoserver i created a web page that displays a map by some more Capabilities and i want to add Ability to create a buffer Centered the Position that i click on and my ideal is select or ...
1
vote
0answers
36 views

OpenLayers 3 Reload Layer(s)

I am working on a project using OL3 in which I need to be able to manually (by button press) or automatically (time based) reload layers IF they have been updated since the last load using HTTP ...
0
votes
0answers
46 views

Select Markers Via a polygon and get the name

I created a map with open layers where i am able to select Markers, make them names appear in a field. But now here is my problem : i want to be able to select markers with a polygon, draw my polygon ...
1
vote
0answers
15 views

is there any online WFS gazeteer client which runs on my web browser or exposes http requests?

My question is somehow similar to this other thread, but in my case I want to test a WFS service: Is there a web page where I can test a WMS URL? I look for an online service which lets me add the ...
0
votes
1answer
41 views

How to update position of markers with “real time gps coordinants”?

I've got real time gps positions for a few cars and I want to create a map with updating markers. My code works but it doesn't "update" the markers, instead it adds new objects with new coordinates to ...
0
votes
0answers
21 views

Openlayers 3 polygon not rendering on map

I've set up a small example of an OpenLayers 3 map, and I am trying to add a custom polygon to the map. If I use the data from the example, it works correctly, the polygon renders, and it is shown on ...
0
votes
1answer
30 views

leaflet: javascript scope issue within geojson onEachFeature function

I'm new to javascript and even newer to Leaflet (version 0.7.7), so I'm having difficulty determining how to ask this question. With leaflet, when I click on a polygon, an ajax request is made, it ...
0
votes
1answer
38 views

Mapbox Error: Style is not done loading

I'm trying to draw on a mapbox map, based on suncalc results and using geojson. First I tried to create 2 functions, one to each line I was trying to draw. But when I did that, it would only display ...
0
votes
1answer
40 views

Adding drop-down menu to leaflet map to update map/tiles to new location?

What I want to do is create an interactive choropleth map that has a dropdown menu of various countries so that the map updates when you click on that country. As an example, here's an interactive ...
1
vote
0answers
39 views

Leaflet map with 'query of features' on mouseover and multiple layers

I have produced two working Leaflet maps that in total contain the features that I need for my application. However, I cannot solve how to have multiple 'overlay' layers that can be queried with ...
1
vote
1answer
24 views

How to Add a single feature ( features[0] ) from Geojson ( without jquery )

var features = new ol.format.GeoJSON().readFeatures(geojsonObject,{featureProjection:'EPSG:4326'}); console.log("I_got_features[0]_as_<point>_:"+features[0].getGeometry().getType()); console....
0
votes
1answer
27 views

Geonode custom development

There is not much information in the form of documentation on http://geonode.org/ development. I need to do some custom "App" development for geonode so that my users can have more functionality ...
0
votes
0answers
49 views

Mapbox.js marker toggle and filtering markers

I am new to here, so be patient please. I have 2 problems with the code below. 1.I could not find a solution on what to state if I want to remove the highlight color on a previously selected marker. ...
1
vote
1answer
24 views

Can i take the wms url from the user interface [closed]

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
40 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 ...
0
votes
0answers
11 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
2answers
48 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 ...