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
1answer
40 views

Function to intersect another polygon using openlayers

I wonder if someone here have a function JS that when I draw a polygon I can see if i drawing on another polygon, like intersect.... if polygon intersect say to me a alert...using openlayers. Thanks! ...
2
votes
1answer
870 views

Is ArcGIS API for JavaScript compatible with Internet Explorer 7 and 8?

I've developed a web map using ArcGIS API for JavaScrip version 3.8 and its not compatible with IE 7 or 8. I've advised the people who have reported this to update their version of IE but, if it ...
3
votes
2answers
169 views

How to determine number of features in GeoJSON file using Python or JavaScript?

Is there a best way to determine the number of features in a GeoJSON file? Ideally using Python or JavaScript.
1
vote
1answer
30 views

Disconnected Satellite map tiles usable with OpenLayers or other javascript api

I'm looking for satellite map, usable with OpenLayer (or with an other js api), with a good scale (at least 100m, MapQuest stops at 1000m) and avaible for a disconnected mode (avaible for download). ...
1
vote
0answers
21 views

Disabling TextSymbol Scaling on Zoom in/out (ESRI JavaScript API)

I am looking for a way to disable text scaling when a user zooms in/out on a map with a TextSymbol on it. It this possible?
0
votes
0answers
26 views

Rotated custom tile set in OpenLayers

I'm thinking of using Openlayers for an interactive map of a building. I'll have custom tile layers for each floor of the building's interior overlaying regular world map tiles. The building is on a ...
1
vote
1answer
53 views

Google Hybrid Map tiles won't load in OpenLayers when centered on certain position

Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico. When the center location is: center: new ...
1
vote
1answer
30 views

A problem with event firing upon mouseout

I'm trying to create a point map that displays information about a point in an info box upon user mouseover and changes the styling of the point. On mouseout, I want the info box and marker styling to ...
1
vote
1answer
33 views

ESRI Javascript API pan parameters

Using the ESRI javasript API, is there a way to set the distance the map will move when panning? When I fire the map.panUp(), for example, it pans, but about twice as far as I would like it to.
1
vote
0answers
26 views

JavaScript _.each function not showing correctly [closed]

Can't seem to get this to display the correct way. The correct way would be Day/open/hours. geojson displayed below: hours: { monday: { close: "18:00:00", open: "10:00:00", call: ...
1
vote
1answer
142 views

Arcgis Javascript API Editor Widget gives a different result when loading through AMD

Currently i'm working on a Arcgis based drawing tool. What we've done so far is create a system where we can easily create local feauture layers and edit those with the standard Editor Widget. Drawing ...
1
vote
1answer
386 views

Add GeoJSON layer to OpenLayers 3

I have a GeoJSON file called mygeojson.json and I want to add it as a layer in OpenLayers 3 on top of an openstreetmap layer. So far I could display the openstreetmap world including zoom etc. but for ...
1
vote
1answer
67 views

why are all polygons of geojson-layer in OpenLayers 3 black?

I want to color each polygon of my geojson according to its Hex-Value at "DN". I tried this: var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: ...
1
vote
1answer
46 views

ArcGIS JS api - how to hide attributes editor when new graphic is added

I use ArcGIS Javascript api in 3.12 version. I have followed this sample in order to display editing toolbar plus template picker. It works pretty good. However I would like to hide popup window with ...
1
vote
1answer
107 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
1answer
13 views

Fetch the selected value from scale toolbar

can somebody guide me how to fetch that value shown in the image? using jquery and or PHP language?
4
votes
1answer
4k views

How to use ArcGIS JavaScript API's map.centerAndZoom()?

I'm trying to get the map to move and zoom in to a point when a function is executed. Point gets selected, but without zoom. Interestingly when I zoom in to a random location and then execute the ...
2
votes
1answer
690 views

Does the ArcGIS Javascript API support multiple map service urls per layer?

I've called tilecache from OpenLayers in the same manner as the example below. Is it possible to do something similar with the ArcGIS WMS map layer? var urlArray = ...
0
votes
1answer
41 views

Download zip from geoserver using javascript

How can i download zip file, made by geoserver WFS request, implemented in javascript? i'm using OpenLayers.Request.POST to send request.
0
votes
2answers
38 views

CartoDB, Torque map sending events to JS when a market is rendered

I have a Torque map like this one and at the same time the bubbles are showing up I would like to render a growing graph with the number of bubbles accumulated. I don't expect CartoDB to do this for ...
0
votes
1answer
66 views

CartoDB - panel info instead of infowindow

I am using CartoDB API to develop a map viewer and I would like to get the information from featureClick into a content panel instead of the typical infowindow. Is there any method to do it directly? ...
0
votes
1answer
1k views

display latitude and longitude on googlemaps on click

iam trying to retrieve latitude and longitude values .when user clicks on the google map latitude and longitude values has to be displayed on the textboxes my code is <%@ Page Language="C#" ...
1
vote
1answer
35 views

How do I catch PostgreSQL/ PostGIS RAISE messages in OpenLayers?

Is it possible to catch Raise Warning, Raise Notice and Raise Exception in OpenLayers while using a WFS-T-Layer (stored in a PostGIS-Database) to save edits? Example: A trigger is used to check values ...
0
votes
0answers
51 views

How to create function that gives google maps getBounds result?

I'm trying to create function that would calculate four bounding coordinates by latLng, zoom level, width and height in pixels, the same like in google maps getBounds function, in goal I won't create ...
4
votes
5answers
2k views

What web mapping libraries are suitable for indoor maps?

I am looking for a custom mapping library but not to display an actual geographical area but to display a custom floor-plan. I have been looking for a while but most of the solutions that I found are ...
0
votes
0answers
34 views

Attributes and Zoom

I have loaded shapefiles on OpenGeo Suite template (ol3view), I'd like to create a popup on click for each point to show attributes. I'd also want to highlight a certain part of the map perhaps by ...
0
votes
1answer
179 views

Stop OpenLayers 3 map firing click event after dragging

I have an OpenLayers 3 map with a source of ol.source.MapQuest({ layer: 'osm' }). I haven't added a DragPan interaction, but the map is draggable anyway - which I want it to be. I also have a click ...
2
votes
3answers
508 views

How to pull lat/lng from a map canvas and update a database

So if i want to pull out lat/lngs after user clicks on a map canvas (lat/lngs are pulled using any javascript API (leaflet, wax etc.) and add this to a postgresql database using a query, how do i do ...
0
votes
1answer
43 views

Best Map API for route polygon calculations

We are building a web app. I need to obtain the area reachable from specific points by driving or by walking in order to obtain the polygon (eg., 5 minutes walking polygon from a specific point), so ...
2
votes
1answer
106 views

Loading Simple ESRI html JavaScript in Internet Explorer 11?

Is there any particular reason this Simple ESRI html javascript wont load in IE11? Chrome works fine <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" ...
0
votes
0answers
29 views

Configurable map viewer (CMV) - Help dialog

I have the help widget set to open on start. I was wondering if there was a way to have the help widget display one tab on start and another when the help button is clicked?
1
vote
1answer
47 views

Running ArcGIS API for JavaScript locally?

I'm pretty new to arcgis javascript api, and I'm wondering how to run it locally. I have downloaded the api, and put the folder "arcgis_js_api" in the root folder of my apachi server, and edited the ...
0
votes
1answer
16 views

custom button in OpenLayers

I am trying to use a custom button in Openlayers but is does not work. what am i doing wrong? var custom_button = new Openlayers.Control.Button({ displayClass: 'olControlCustomButton', ...
0
votes
0answers
25 views

CartoDB - infowindow / templates - multiple languages

Is it possible to configure CartoDB infowindow and templates in different languages via visualization panel? For instance, I am thinking to define in client js viewer some language templates, detect ...
1
vote
2answers
567 views

Custom ordering/z-index of icons in Leaflet layer

I have a single layer (points) with a bunch of markers. Each point has an attribute that is regularly updated. I understand by Leaflet sorts the layers such that those lower in latitude are on top for ...
2
votes
1answer
155 views

How to center the map to a KML placemark with OpenLayers 3?

I'm using OpenLayers 3 to display my KML layer on the map. My KML contains two placemarks, one contains a linestring of waypoints and the second one is a point, like this: <kml ...
0
votes
0answers
63 views

How to change cursor to pointer mode while Dragging & Dropping in OpenLayers 3?

How to edit the cursor to pointer mode while using the ol.interaction.DragAndDrop in OpenLayers 3?
2
votes
1answer
963 views

Layer loadstart & loadend events in OpenLayers 3

OpenLayers 2 has these layer events "loadstart & loadend." What is equivalent to them in OpenLayers 3? While a vector layer loads and is rendered, I need to show a loading icon.
0
votes
1answer
29 views

Hash of Feature Layer Graphics

On a web application I'm currently working on, some of the data for the GIS Service is bad. For instance, there may be multiple polygons that should be a singular graphic, but instead they are each ...
0
votes
2answers
46 views

How to show which layers are currently visible

I feel like this is a rather easy one, I just cant get it to work... Basically, I want to show which layers are visible from a dynamic layer. I see all the objects being returned in the console with ...
0
votes
0answers
19 views

leaflet filelayer.js change click event

First off, I am no Javascript expert. Second, I have a feeling this is nice and simple for someone with skills. I am building a map and incorporating the leafletfilelayer plugin. The plugin works ...
0
votes
0answers
66 views

Problem hosting web map template in local web server

This is the Webmap I have prepared in ArcGIS online. http://www.arcgis.com/apps/Viewer/index.html?appid=c72a0fc5e554462daec7df89bcc3adf4 I have downloaded a sample template from ...
0
votes
2answers
44 views

Use try, catch when querytask times out using JS API

When I do a querytask and the date range criteria used is too vast, I get a 500 internal server error after 1.7 minutes every time (unless the query takes less than 1.7 minutes, then it runs fine). Is ...
2
votes
1answer
243 views

How to disable Google map zooming animation effect?

I am using Openlayers mapping library in my application. I have integrated Google map V3 & added other several WMS overlays, Vector layers etc. Every thing working fine. But I am facing big ...
0
votes
1answer
79 views

Displaying more than one layer from GeoServer using OpenLayers?

How can I add additional data layers to this code? I tried using "map = new OpenLayers.Map('map', options);" again and set up a tiled layer for buildings exactly as it has been done for roads but not ...
1
vote
1answer
104 views

How do I get ArcGIS tiles to display a single layer when multiple layers are available?

I am using Bing Maps v7 to display layers from an ArcGIS server. The server displays multiple layers as one, but I would like to only display a single layer. Suppose a map service has the layers: ...
1
vote
1answer
51 views

OpenLayers map with Nominatim lookup function not working

I am trying to create a simple map with a search function, my minimal example is here: http://jsfiddle.net/TimLucas/vbaupe30/4/ For some reason the coords transformation after the script has received ...
0
votes
0answers
54 views

Connection to Shapefiles and PostGIS

I have this HTML (see below) code, I want to connect to PostGIS to the Shapefiles I have loaded, but I can't find where and how to accomplish that. I want my map to display this Shapefiles when the ...
0
votes
1answer
50 views

Does an event get fired after a Layer has finished rendering in Openlayers 3?

I am rendering about 27000 Markers in different layers on a mapview. Everything works fine on fast devices. I have a problem on older devices (like the iPad3). When i hide one layer and set another ...
1
vote
1answer
40 views

How to toggle selected features by clicking on them in OpenLayers?

This is my website for test: http://www.cv.nctu.edu.tw/shapefile-js-openlayers/ol_simple.html This is my expected result:http://www.cv.nctu.edu.tw/shapefile-js-openlayers/test.html I want to try ...