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

How to change Level Zero Tile Count in Leaflet

I have a tile map that I want to display using Leaflet but the base layer is 4 tiles by 4 tiles instead of the usual 2 by 2. Is there a way make this work with Leaflet?
2
votes
1answer
73 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
0answers
57 views

browser crashes when loading legends at startup

After much perusing for solutions, I've decided to post my problem as a question. I'm trying to load the legends that are built into the ArcGIS Service Layers I'm using. I'm loading about 7 Dynamic ...
0
votes
0answers
9 views

Javascript - Convert arc polyline to arrow polygon

I am using the arc.js library to generate arcs on my map. Those arcs are polylines. I would like to transform those arcs into arrows polygon. To create the arc, I need the start and the end ...
2
votes
1answer
76 views

Legend not removed when layer changed [closed]

I made this webpage with JavaScript and CartoDB. The layer selector works like I expected it to but I noticed that the legend are stacking on top of each other and not being removed when the layer is ...
0
votes
1answer
99 views

Leaflet: Scroll wheel controlling map zoom and not drop down menu

Edited 6/19/2015 I have a custom leaflet control box with a drop down menu. When I use the scroll wheel over the menu, the map changes zoom level instead of scrolling the menu. The problem occurs ...
2
votes
1answer
23 views

disable onEachFeature at zoom level, leaflet

I have a leaflet map that zooms and fits on the bounds of the polygon that is clicked via onEachFeature. Is there a way to disable this at a certain zoom level? I add new layers on the 'zoomend' ...
0
votes
0answers
13 views

Openlayers 3 equivalent of Openlayers 2 OpenLayers.Protocol.HTTP.options.params?

Is there a way to send data to the server with POST request instead of GET ? I used to use Protocol.HTTP.options.params for this purpose, but I can't find any equivalent in Openlayers 3 ...
0
votes
0answers
35 views

Layer Tree Collapse Alongside OpenLayers3

I have the following JSFiddle that includes a layer tree for my OpenLayers3 map. It is currently set up so that when you click on the branch 'parent', the layers collapse. I'm looking to make it so ...
0
votes
1answer
307 views

How to add WMS Layer from Mapserver( localhost) on Cesium Globe?

I am trying to add WMS layer from mapserver i.e. from localhost on Cesium Globe with the following HTML code. But I am not able to load or connect Cesium with the Mapserver and nothing is displayed on ...
0
votes
1answer
21 views

Selecting features by attribute in Leaflet

Is there a way to select an individual feature based on an attribute from a FeatureGroup in Leaflet? For example, when selecting a feature based on a click event, I will do something like, function ...
4
votes
2answers
150 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
2
votes
1answer
502 views

How to get data from TileMill tileLayer properties in Mapbox for click/hover

I've successfully used Leaflet to load a geoJSON polygon-shapefile with data, and added click and hover interactivity to the layer. For a large dataset, I switched to mapbox.js 1.6.1, used TileMill to ...
1
vote
1answer
274 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
1
vote
1answer
232 views

Why do I have to reload the page, to show the Map correctly?

I added a map, in the way I'm supposed to, but why do I have to reload/refresh the page, to get the map (almost) as I want to? This is, what I mean: Map before reloading the page: Map after ...
0
votes
0answers
16 views

Leaflet controls: onAdd() -> “ready” event

I've got a custom control for Leaflet (0.7.3) that uses L.DomUtil.create to generate its own HTML in the onAdd() function. Most of its bootstrapping happens in onAdd(), but I need to do some final ...
0
votes
1answer
19 views

zoomin and zoomout in google maps

Friends i am creating javascript web application using google maps. i am trying to create a tool for zoomin and zoomout option.i created two buttons for zoomin and zoomout, now i am trying to activate ...
0
votes
1answer
206 views

Openlayers event cluster feature id does not appear on layer vector feature id list

My application's objective is to click on a cluster and produce a popup with a list of all placemarks clustered there where every entry is a hyperlink that closes current popup and opens a new ...
2
votes
4answers
7k views

Understanding the polygon handler function in Openlayers

Using openlayers, I want to be able to draw one polygon on a map. After one polygon is drawn, I want an event to fire that stops any more from being drawn until a button is pressed. My current code ...
1
vote
0answers
26 views

Leaflet Temporal animation of marker clusters

I recently have applied the markercluster leaflet plug-in to my map and I was wondering if something like leaflet.timeline would be compatible with cluster visualization? if not is there any other ...
2
votes
2answers
23 views

Adding a Polygon to an OpenLayers3 Map with coordinates read from a string

I do have a bunch of coords as a string read from a wps request result. I want to display these coordinates as a new layer added to the exisiting map. What I do is to split the string by containing ...
2
votes
1answer
529 views

Openlayers text layer is not working

I am trying to load markers from a text file using openlayers text layer, but no marker is shown, text file and icons are in same directory. However I am able to show markers using marker layer. My ...
1
vote
0answers
32 views

way in R or Python to add image/video in map plot marker click popup/infowindow

I have many different (lat,long data) points of world associated with unique place names and corresponding each point specific image or video data. Now I want to create an html file where if user ...
2
votes
1answer
324 views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
-1
votes
0answers
17 views

To display vector layer in homepage using java [duplicate]

I am new to GIS. I am tring to create a webGIS application. I am using open source softwares ubuntu,geoserver, j2ee services to do this task. I strucked in the starting point of the application. I ...
0
votes
0answers
36 views

How to get attributes of a vector layer under drawn polygon in ol3

I added one vector layer on OSM layer. I want to show the attributes of vector layer under drawn polygon using ol3. please help me
0
votes
1answer
143 views

Configurable map viewer (CMV) - Find the area of drawn polygon

I am trying to get the area of a polygon and divide that by 16.94 ft^2. I have plugged in a Template I found. I am missing something. I am trying to get the template and my original code to talk. ...
2
votes
2answers
1k views

How to create circular polygon in openlayers 3?

So i would really like to modify this example: http://openlayers.org/en/v3.0.0/examples/tissot.html?q=circle Problem there is that wheter i try to apply it to my map it doesen`t work, probably ...
0
votes
0answers
36 views

Having a basemap, tiled map and a dynamic map together

I have a basemap and a dynamic map which works perfectly together. But i have to add a tiled map too. But if i add the basemap first tiled map wont show up. I want to remove and add the Tiled layer ...
0
votes
1answer
16 views

Unable to serve .terrain files in cesium sandcastle

I am learning 3d terrain generation using CesiumJS. I generated .terrain files usind Cesium terrain builder and kept them in 'cesium/apps' directory for testing purposes and to avoid CORS issues. ...
4
votes
0answers
42 views

Describing borehole information with geojson (javascript)

I deal a lot with borehole information and looking the best way to move it around in javascript / take advantage of javascript libraries (e.g. leaflet) for looking at this information on mobile ...
0
votes
3answers
339 views

javascript function to search all OpenLayers vector features covering a pixel

I have an OpenLayers map that draws features in a vector layer. The features are selectable and have a popup on select. Unfortunately in a lot of cases the features overlap so it can be impossible to ...
0
votes
1answer
35 views

Adding an OpenLayers 3 layer parameter to change external layer controls

I have this JSFiddle that has a couple of layers and then a box after it where my opacity slider would be if all the correct external resources were loaded in. In the 'Cities layer 2' layer ...
1
vote
0answers
16 views

Leaflet inbuild AJAX methods for WMTS getCapabilities request

I was wondering whether the Leaflet library has inbuilt methods to make AJAX requests. My goal is to create a plugin that makes an XMLHttpRequest request to a specified WMTS resource and parse the XML ...
0
votes
1answer
40 views

Arcgis javascript - Set different symbol for each graphic in feature layer

I have a feature layer that contains 12 items with the same defined style. But I want to change each item to have a unique symbol when rendered. var Layer = new FeatureLayer("http://...my map ...
1
vote
1answer
378 views

How can I dynamically restrict pan extents on an image layer in OpenLayers 3?

I have been sandboxing with OpenLayers 3 and thus far have been happy with the results. I have used answers on this site to restrict my most zoomed out level from panning and to restrict the range of ...
1
vote
1answer
61 views

Using Mapbox (LeafletJS), how do I edit imported shapes from GeoJSON?

Overview: I'm currently working on a project where I'm importing GeoJSON into a map using Mapbox. However, I'm wanting to be able to edit those shapes once imported into the map. I've gotten the ...
0
votes
1answer
41 views

Leaflet: Find my “this” in GeoJSON.pointToLayer function

In leaflet, I have a class that extends L.GeoJSON: L.MyLayer = L.GeoJSON.extend ({ initialize: function () { this.markers = []; ... I redefined the pointToLayer method to create ...
1
vote
0answers
36 views

How to start the click event when drawing event is completed in openlayers3

I added two features for a map. first handles drawing on map and second one which will show the features in a table. when i am drawing the map the second click event is working. so i stopped the event ...
0
votes
0answers
32 views

How to generate features for a drawn polygon on a vector layer and send it to Json file using ol3

I have generated attributes for a drawn polygon on a vector layer. While selecting the drawn polygon on map i am getting geneated features on a table. But i want to store in same Json file where i am ...
0
votes
1answer
36 views

Redirect if Clicked on a Marker in CartoDB

How can the user be redirected if he clicks on a marker in CartoDB? I have a dataset with the markers — the geometry and inside of the description-field the URL to redirect the user. I know I can ...
0
votes
0answers
37 views

How to get GeoJSON properties to appear in openlayers 3 popup when using CLUSTERS?

I'm attempting to get my geoJSON properties to appear in my on-click popup but no matter what I try, it either returns the geometry name object Object or Undefined. I think openlayers stores cluster ...
0
votes
0answers
38 views

ArcGIS Web AppBuilder View Query Results in AttributeTable

I'm building a couple of custom widgets for use on a Web AppBuilder app that do some queries against feature layers. I get back a feature set, which I can convert to a local feature layer. What I'd ...
0
votes
1answer
556 views

refresh the map Ol3 (Openlayers3)

Hello I'm using ol3 in a mobile hybrid application using sencha touch2 , so I start by drawing a polygon inside a map , after validating this drawing I redirect the user to an other form in order ...
2
votes
1answer
197 views

Using Odyssey.js with Cartodb.js

I'm looking to use Odyssey to create an interactive introduction to various data layers on an interactive web map I've created using CartoDB.js. I'd like to have different data layers turned on / off ...
1
vote
1answer
669 views

ArcGIS map service layer not loading properly

I'm at a total loss. My initial problem was an issue with the layer not loading at all when the page was set to the full extent, despite having changed the Min/Max Scale settings generously when ...
6
votes
1answer
474 views

Why do ArcGIS Desktop 10 HTML popups give JavaScript/HTML Error?

Using ArcMap 10 Desktop HTML Popups. The issue I am having is that the html < select > elements aren't working - you can select it and use the arrow keys to navigate through(up/down) the list but ...
1
vote
1answer
142 views

Openlayers filter strategy on wfs deactivate problem

I have a filter control which works nicely. However, when I try to reset/remove the filter, I don't get the original features back. The debugger shows my features array as still only being the reduced ...
0
votes
0answers
201 views

Apply css styles to layers in openlayers3

define layers and styles using openlayers3 API. I need to apply css styles for layers.for that code is in below used //applying styles for wms layer var fill = new ol.style.Fill({color: 'rgba(237, ...
0
votes
0answers
46 views

Leaflet tile rendering

I've startet tinkering with the Leaflet JS library in order to display a Web Map Tile Service (WMTS). By default Leaflet does not support the WMTS standard. An initial investigation has revealed that ...