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
1answer
18 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
308 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 ...
0
votes
1answer
17 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
13 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 ...
0
votes
0answers
8 views

Using OpenLayers 3 layer parameters to change 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 ...
0
votes
0answers
8 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
18 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
32 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
6 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
4 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. ...
0
votes
0answers
8 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
441 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 ...
-1
votes
1answer
31 views

Best JavaScript library for Web Mapping using the ArcGIS for Server [on hold]

I'm working on a web-based mapping system and I'm trying to figure out the best appropriate library to use for interactive web maps (querying, editing, interaction with external WebServices (popup's ...
2
votes
1answer
181 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
643 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
471 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
139 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
178 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
36 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 ...
0
votes
0answers
6 views

Adding a layer in Openlayers returns error [on hold]

I am trying to understand why the following simple code of adding a layer in openlayers gives an error (adds the layer in layer switcher but everything gets pink): //alert(layerName); var ...
0
votes
0answers
29 views

Web Application for display raster data on basis of time slider

It May act as a duplicate question to many, but i have tried refering too all the questions related to my questions, but i am still confiused. Below in attached my code. which i use for Web Mapping ...
0
votes
1answer
16 views

Buttons wont work when I copy the Content of the TOC dynamically into dojo FloatingPane and back

We work with a combination of dojo Vers 1.10 and ArgGis Javascript APi 3.11. We were asked if it ist possible to copy the TOC Layerlist into a seperate dojo FloatingPane by rightclicking into the ...
0
votes
0answers
14 views

how to search for a Point of LineString geometry in a json file using OpenLayers 3

I have a json file with polygons. Here I added the json layer onto OSM layer(baselayer). I would like to search for a Point's LineString in the layer, from which LineString that Point been selected. ...
0
votes
1answer
33 views

Unable to serve Cesium Terrain files

I am trying to generate 3d Terrain. I am serving the terrain files at localhost:8081 Here is the Cesium Code var viewer = new Cesium.Viewer('cesiumContainer', { baseLayerPicker : false, ...
0
votes
0answers
6 views

How to write features in json file after drawing point on map in openlayers3

Can i save the features on selecting points into same json file? `function addInteraction() { draw = new ol.interaction.Draw({ source: floodAlertLayer.getSource(), type: ...
0
votes
0answers
19 views

XY bounds for L.tileLayer in CRS.Simple

Sorry for my english Hi, I have leaflet.js (image of map 5913x7863) and there L.CRS.Simple I had var imageBounds = [[1468.9700,-11.7050], [1968.2705,363.7705]]; var file0 = new ...
0
votes
0answers
14 views

How can I sync a vector image with a leaflet map?

I am trying to create the following: For the user to interact (hover, click, etc) with vector layers on the left, and have a leaflet map respond to it on the right. I have used the following that ...
0
votes
0answers
16 views

How to access the Metadata link URL field of GeoServer using the OpenLayers Library?

Geoserver v: 2.4.4 OpenLayer v: 2.13 All maps are WMS. In my javascript I use "layer.name" to access the Title of the specific map as specified in my GeoServer layer. Using jquery I was able to ...
0
votes
0answers
11 views

how to store edited features on map into json file in ol3 using javascript

I added two vector layers which are downloaded from geoserver into my eclipse and i am displaying the layers on osm layer. After i added drawing features on vectorlayers i cannot able to save features ...
5
votes
2answers
1k views

Leaflet mouse wheel zoom only after click on map

I'm working with the Leaflet JavaScript Library and attached a (working) map to my HTML Document. It is in the middle of the page, and when I'm scrolling down with my mouse wheel and arrive at the ...
0
votes
0answers
10 views

Adding UTM to dijit measurement location in JAVA API

2 coordinate systems are shown when using dijit measurement by default. is it possible to add UTM to the Dropdownlist ? Here is the code : var measurement = new Measurement({ map: map }, ...
2
votes
1answer
241 views

find inner bounds of a polygon in leaflet

How can I find the inner bounds of a polygon in leaflet? I a want to plot points randomly in polygoon but when I say Layer.getBounds() I get the bounds and I can still plot the markers ...
0
votes
0answers
17 views

Refresh Openlayers vectorLayer every 5 seconds with jQuery and Ruby

Ich want to refresh my vectorLayer in OpenLayers every 5 Seconds using a jQuery. How do I have to do this? The data for the Layer is stored in a Ruby KML. Just look at the Code. Ruby method for the ...
0
votes
1answer
32 views

How to get GeoJSON properties to appear in popup on feature click in Openlayers3?

I have a map with a base layer and a geojson cluster layer. I want to be able to click an individual feature on the map and have the contents of the properties be displayed in a popup. I currently ...
1
vote
1answer
756 views

How can i use snapp point in when i use measurecontrol?

I have problem about measurecontrol . I can use measurecontrol and i can show length to use measure control . But my problem is that .i didnt use in snap because measurecontrol is a control not ...
0
votes
1answer
24 views

Create KML in Ruby with ruby_kml and use in Javascript

I want to create a KML in Ruby and use it with Openlayers. But Openlayers only wants a real KML file. It's complicated to explain. Just look at my Code: In my Controller I have the following method ...
2
votes
2answers
433 views

Authentication in Geoserver 2.4.x from a web application

I am trying to build a web application using html and javascript from which I want to login to geoserver hosted at: https://weaveprod.ucdp.utah.edu/geoserver/web/ I have written the following code for ...
2
votes
1answer
20 views

Layer selection visibility unchecked in initial state in OpenLayers 3

I have this JSFiddle example that has two vector layers in it, 'Cities Layer 1' and 'Cities Layer 2'. As you can see from this example, cities layer 1 has a visibility set as the default of true and ...
3
votes
2answers
159 views

Geocode an address and then buffer

I have a script which geocode an address and buffer that address by 1, 5 and 10 mile radius. The problem I am having is that the address on the map shows 4 different points not sure what's causing it. ...
0
votes
1answer
49 views

How to introduce variable time interval in “window.setInterval(function() {…” segment?

The following leaflet codes draws a series of markers one by one. How to introduce variable time interval in "window.setInterval(function() {..." segment?. I want to display each marker for the time ...
0
votes
1answer
19 views

GeoJSON not being shown

I was trying to add a GeoJSON feature implementing leadlet, but with no avail. Cannot figure out what is going on? <!DOCTYPE html> <html lang="en"> <head> <meta ...
0
votes
1answer
151 views

get and change style property openlayers

i need to change the property of some style after its created, and i need to change it with knowing only the string of the property name. i am getting string like "fillColor" and value like "blue", ...
0
votes
1answer
15 views

Error Using 'L.mapbox.featureLayer' to load GeoJSON with pointToLayer Option

I am currently working on a project where I am loading GeoJSON into a map. The GeoJSON will include circles, point markers, and the other essentials shapes. I've been having this issue that I can't ...
0
votes
0answers
19 views

How to find the area of a feature in OpenStreetMap, using overpass api and javascript

I am creating a calculator and I would like to know the area of parks/water bodies in a specific area. This would have to be dynamic. I have successfully requested all the features I need using the ...
0
votes
1answer
37 views

Leaflet MarkerCluster custom info window instead of spiderfy effect

So I have been experimenting with the Leaflet Marker Cluster and was wondering if there is a way to disable the spiderfy animation and change the event when cluster is clicked on? Instead the clicking ...
0
votes
2answers
3k views

How to create styled markers with custom marker tooltip

How to create custom markers and when mouseover on marker i need a tooltip can any one suggest me how to do these type of markers...i need markers like below image Thanks in advance
1
vote
0answers
23 views

How can I access the array of predicted addresses from Google Maps once an address is entered?

The Google Maps JavaScript Autocomplete API mentions that autocomplete returns an array of prediction objects. How can I access this array without autocomplete? I have a standard HTML form with ...
0
votes
0answers
50 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 ...
0
votes
0answers
39 views

How can I get the mouseover event to work in my Leaflet.js map?

I have been trying to follow this mouseover example on the Leaflet.js website but I can't get my test version to work properly. The mouseover works only in some shapes at a time, but the mouseout ...
0
votes
1answer
157 views

Placing GeoServer WMS layer within OpenLayers 3

I have the following basic OpenLayers 3 code that opens a OSM background mapping and this works fine: <!doctype html> <html> <head> <title>Hello PMS</title> ...