OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.

learn more… | top users | synonyms

0
votes
2answers
19 views

register to event in openlayers 3

I have a web application in openlayers and I am starting to rewrite it to openlayers 3. In the application i have some features that i need to delete/move/add/edit the features then to save it to the ...
6
votes
1answer
139 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
0
votes
1answer
141 views

openlayers search on feature

map = new OpenLayers.Map('map', options); var tiled = new OpenLayers.Layer.WMS( "Kaski", "http://192.168.1.236:8080/geoserver/Kaski/wms", ...
1
vote
1answer
1k views

How to obtain to Max zoom levels for Google layer using Open layers

I was trying to obtain maximum zoom level ( level 22) for Google street map using Openlayers.layer.google script. The following code does not seem to work.It works to the maximum zoom level when Var ...
0
votes
0answers
7 views

add a new library in netbeans

I have a project in GIS and i'm blocked and i hope that you can help me I work with apache tomcat and i deployed geoserver in apache tomcat (geoserver is a cartographic server)...now i created a ...
1
vote
1answer
2k views

How to display a geotiff-image with OpenLayers at the “right place”?

I'm just starting with OpenLayers. I have a georeferenced geotiff and the associated world file. Now I want to display this image as an Overlay and google-maps as baselayer with OpenLayers. Would be ...
0
votes
0answers
27 views

Writing a script for accessing QGIS tools for use in HTML WebPage

My objective is to write a script which uses QGIS GRASS Plugin tools and generates an IDW Interpolation Output and passes the file path as a parameter, which can be used in an OpenLayers API ...
0
votes
1answer
12 views

Vector Layer editing in OpenLayers

I can draw a polygon in OpenLayers by this code. var points = []; var point = new OpenLayers.Geometry.Point(0, 0); point.transform('EPSG:4326', 'EPSG:900913'); ...
1
vote
1answer
326 views

WFS in Openlayers

I am new in Openlayers and web services in general, but until now I have managed to create a WMS (published by ArcGis to a server provided by uni) and connect it with Openlayers. Projection etc works ...
0
votes
1answer
28 views

Read GeoJSON with openlayers

I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put in the www folder on my server I'm running geoserver locally my pages are also in ...
1
vote
1answer
93 views

How to get layers from current viewport in Openlayers?

In my web map application, I have developed the printing module by using Mapfish with Geoserver. While printing, I need to send the layers to geoserver only which are falls inside the current view ...
0
votes
2answers
199 views

problem with search (formPanel)

am new to GeoEXT and am trying to do the search with form panel. and i want to search features from 2 postgis table, published in geoserver, this features correspond to the field on the formpanel and ...
0
votes
1answer
23 views

Reprojecting vector layer in OpenLayers

I have a simple OpenLayers map, where I would like to display the OSM map (the base map, in EPSG:900913) with some points on top of it (a vector layer, in EPSG:3763). I use proj4js. I do convert a ...
1
vote
1answer
99 views

case insesitive CQL-openlayers filter

I have the following filter in openlayers 2.13 var filter_c = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.LIKE, property: 'p_name', value: ...
1
vote
1answer
188 views

OpenLayers removing/adding marker (airplane): update the orientation based on lat/long (next point in database)

The code below I have is working great. I'll try to explain it in a few lines (btw you can view it here http://codeshare.io/9Z1BE): -there's a marker on the map. The lat long is returned as json from ...
13
votes
5answers
735 views

Comparing two maps with nice web interface?

Is it possible in Leaflet or OpenLayers to compare two maps with a bar to slide between the two? Examples include: ...
2
votes
1answer
270 views

OpenLayers and custom Proj4 Projection

ok so I'm a newbee in using OpenLayers. I try to map some planetary data on my webMap server using OpenLayers. I defined a proj4 projection as follow: Proj4js.defs["MYDATUM"] = "+proj=longlat ...
0
votes
1answer
23 views

Select all features close to clicked

I have an openlayers map with more then 20000 features not in wms, only in vector layer. I have a control to select features, but sometimes it's really hard to select, specially the lines, and also ...
0
votes
1answer
531 views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
0
votes
2answers
27 views

OpenLayers and Mapserver-WMS-Layer disappear if the map is draged

I have a client for the WMS-Services of my mapserver. The client program is written in javascript and it uses Openlayers (v. 2.12). The map has as a base layer "Google satellite"-Layer and the ...
0
votes
0answers
12 views

Openlayers WMS GetFeature Info Pop Up Not Working / Mapserver

I am new to OpenLayers and Mapserver .. I have been trying for days and am not able to make it work I want to make a Pop Up for Get Feature Info but nothing appears when i click any place This is ...
0
votes
1answer
65 views

Get box related info in OpenLayers

I just started to play a little bit around OpenLayers and I am experiencing some issues while trying to let the user draw a bounding box within a map. For this, I looked at this example and tried to ...
0
votes
1answer
27 views

which framework is good for closed intranet [on hold]

My requirement is simple. By latitude/longitude, draw icon on the map, draw a line between two icons.I may need put a customer picture over the map. It is not difficult by google map javascript or ...
3
votes
2answers
379 views

Display GeoJSON layer on top a SVG image instead of a map.

I'm very new to GIS, so hope this is the correct place to ask. Not sure if this will even be possible. This is what I want to achieve: In short, I want to display a set of polygons, lines etc. in a ...
0
votes
1answer
20 views

OpenLayers SVG sprite externalGraphic only works in Firefox

I am trying to set the externalGraphic property of a vector layer's style to an SVG sprite that has various viewboxes to position the icons dynamically by creating different views within my SVG file: ...
0
votes
1answer
65 views

WMS render geotiff as a small image

Hye! I am facing Strange problem,My Geoserver 2.2.4 was stop working suddenly so i made a backup of Dir folder and install Geoserver 2.3.5 and replaced workspace folder with new one. Now all ...
2
votes
4answers
74 views

How to make a private OSM (Save personal information to) a map using OpenLayer or Tilemill or mapbox

OSM (OpenStreetMap) is great for making a real time public map for general purposes but what if I want to add private info to a map such as the location and date of my first kiss or a note about every ...
0
votes
1answer
203 views

SQL Data: How to draw circles with a radius based on lat/long data in DB

I have a . sqlite file with many columns, two of those columns being lat and long. I've been searching around for a bit now (don't think I want to be using BuildCircleMbr from spatialite?) but I'm ...
0
votes
0answers
8 views

how to add layer style in geoserver using gxp_styler by GXP api

I am using GXP api(open Geo Suit) for my GIS application.I want to add style to layer using gxp_styler plugins.This plugin is working fine for me but the problem is that when i add a new style to ...
0
votes
1answer
424 views

WMSgetFeatureInfo ProxyHost

Does WMSGetFeatureInfo need a proxyhost to allow remote server accessing the data? I use ProxyHost to allow WFS requests, but seems its not working with WMSGetFeatureInfo. the local machines retrieves ...
3
votes
1answer
517 views

How to use drag feature in 2 layers?

I used the following code: this.installDrag({layer:this.poiLayer,opt:'load',id:'poiLatlong'}); this.installDrag({layer:this.addNewPoiLayer,opt:'add',id:'poiLatlong'}); but drag is installing for ...
0
votes
0answers
16 views

openlayers setCenter issue (other posts on this do not solve it)

I can't get map.setCenter to display an OSM layer (via openlayers) centered at my specified coordinates. Instead it defaults to the West Coast of Africa. The zoom level does however work. Both of ...
0
votes
1answer
101 views

Screen coordinates generated locate popup incorrectly

I'm using OpenLayers 2.13 for an application that create several maps. When the user click on a map a popup appears where the user clicked on the map. Sometime the popup is offset either east or west ...
0
votes
3answers
570 views

Bing map SetCenter doesn't work

Hi everybody am trying to use bing map on my html page using openlayers and geoEXT. the problem is when i change the center of the bing map nothing happens, also when i try to zoom on the map on ...
0
votes
2answers
12 views

OpenLayers - How to construct OpenLayers.Bounds

I would like to create Bounds for a layer but I am not sure in what order I have to provide the min_x / max_x and min_y / max_y coordinates. is it correct to put it in that order: min_y, min_x, ...
0
votes
1answer
18 views

Showing Dojo charts On OpenLayers Map

I am trying to show dojo GFXLayer of dojox.geo.openklayers on my map layers , the problem is that my map is not showing townLayer but map is showing default OSM Layer and GFX layer.What I am Doing ...
0
votes
0answers
20 views

Don't cancel the click event on a SelectFeature

On my OpenLayers map I have a custom Control that has a ClickHandler. I also have a SelectFeature on one of my layers. I need the ClickHandler to fire even if a SelectFeature is clicked. I tried: ...
0
votes
1answer
28 views

overlay google maps to openlayers in geoserver [duplicate]

I am new to geoserver and I want to overlay google maps to my openlayer in geoserver, i dont know how to start with? do suggest me how to begin. I wanna know which file to access, file extension, and ...
0
votes
0answers
17 views

OpenLayers GeoJson style

I have a GeoJson that I'm displaying in OpenLayers. I created a style map and added it to a layer. The problem is that in GeoJSON I have two types of features - Points and Linestring. And they both ...
0
votes
1answer
969 views

How to add google satellite as a base layer for a geoserver generated openlayers page

İ have added a shape file to geoserver and generate a wms page. I want to add google satellite as a base layer but i can't do it. would you please give me a hint how to add google satellite as a base ...
0
votes
1answer
87 views

How to drag label using DragFeature or ModifyFeature?

I am new to openlayer. I have seen the examples in which DragFeature is able to move my points, polygon and lines. But when it comes to test the Label moving in IE8, then the dragging functionality ...
-1
votes
0answers
15 views

Geoserver chart Extension Pie Charts [closed]

I am trying to create a pie chart on Open Layers Map. The Map is showing pie charts. Using SLD, I want to show labels on the pie chart.
1
vote
2answers
279 views

Select features of layer which is not on top in OpenLayers

I have posted this question before on the general StackOverflow forum: http://stackoverflow.com/questions/16278569/select-features-of-layer-which-is-not-on-top In short my problem is that I have a ...
2
votes
2answers
350 views

OpenLayers - SelectFeature fails on a small polygon on top of a larger polygon

I'm using new OpenLayers.Control.DrawFeature to draw polygons and OpenLayers.Control.SelectFeature to select a specific polygon. I'm drawing one polgon and then a smaller polygon on top of the first ...
2
votes
2answers
2k views

Openlayers & WMS - GetFeatureInfo problem

I'm making a small project but I encounter some problems. Let me explain that : Having generated mapfile with mapserver and they are viewable by the openlayers interface, I would like to make me ...
0
votes
0answers
23 views

Overlay two images using Openlayers [on hold]

I would like to overlay two images (one image is sub-image of the other) using openlayers(data loading from PostGIS database). Is is possible to overlay without the projection system of the images?
0
votes
0answers
13 views

openlayers undoRedo and Ragbag of components library conflict

I am currently using this example (link below) for modifying feature http://jorix.github.io/OL-Ragbag/examples/modify-feature.html and now I'm trying to add functionality for undo/redo ...
1
vote
1answer
83 views

WMTS GetFeatureInfo in android

I want to create something in android like this: http://openlayers.org/dev/examples/wmts-getfeatureinfo.html I'm able to load the costum tiles with WMTS but now i need to get data to show in some kind ...
0
votes
0answers
18 views

how to filter point features based on the filterted polygons with OpenLayers

I have one WFS polygon layer and one WFS point layer. The polygon layer has an attribute user_id. The web map has two requirements. Filter the polygons based on the attribute user_id. That is, a ...
0
votes
0answers
11 views

Layers change position when saving to another data format

When I save my map after using the composer, the layers move a little bit on the images of the OpenLayers plugin. It is like they ignore the CRS option. Do you have an idea?