Tagged Questions

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

learn more… | top users | synonyms

1
vote
0answers
144 views

Image not loading properly with OpenLayers Map in Chrome

I have an application using OpenLayers 2.13 that load serveral maps. The first image loads and displays fine. The second dosen't load properly. See image below: I am new to OpenLayers. The ...
0
votes
0answers
239 views

CQL Filter contradiction between WFS getFeature request and WMS mergeNewParams

I am developing a web map application by using Geoserver 2.4.0. In my application, I have developed a module like Arcgis Query builder as shown below screenshot. In that, while I am using CQL ...
0
votes
0answers
227 views

OpenLayers : Multiple layers popup issue

I'm actually having a big issue that I cannot solve so far. Here is my problem. I actually have a map on which I'm displaying markers (WMSGetFeatureInfo) depending on some categories that I want to ...
0
votes
1answer
834 views

How to resolve Geoserver ERROR: Operation on two geometries with different SRIDs

I am working on Geoserver Version 2.4.2 . I have one layer 'beat' in postgresql database. I have publish layer in geoserver but its not opening OpenLayers layer preview link. It gives error as ...
1
vote
0answers
284 views

Updated: Openlayers Vector Layers with Google Map Base Layer (via Grid): Vectors Stick but can't get correct resolution/projection

Revamping this question instead of opening a new one. Previous issue: vector layers were not "sticking" to the map, so when you would zoom in or out the vector layers would "come out" at you. Note ...
2
votes
0answers
100 views

Openlayers waits for base layer until loading other layers, is paralleled loading possible?

I am loading a base layer from OSM and a WMS layer from my local geoserver using the latest stable openlayers (2.13.1). Performance is okay, but openlayers seems to wait for the base layer to load ...
0
votes
2answers
94 views

How to call Geowebcache tile openlayers [closed]

Can anyone provide the solution, how to call GeoWebCache tiles in openlayers as i have 20GB of tiles created in gwc folder.
0
votes
1answer
60 views

openlayers gets all features

I need to get all features' names, and for that I did a listview to put all features' names on it. So when i click one feature, not on the map but on the listview, the feature must be selected. Here ...
0
votes
0answers
63 views

Geoserver animator request using OpenLayers

I have question on how to use the Geoserver WMS animator. When I make a request with my layer using WMS animator, paste it in the url tab it works well. I have this viewer in the client side and I ...
0
votes
0answers
14 views

Multiple viewparams in openlayer [duplicate]

I use geoserver to visualize my maps with a sql-view, i need to pass 3 parameters with openLayers to construct the view. I tried a few things but he only takes 1 parameter: csm = new ...
1
vote
0answers
589 views

openlayers 2.13.1 vector layer and CQL does not work in IE11

I have implemented a search functionality for a vector layer in openlayers 2.13.1. I use CQL. I take the values from an html form and I use javascript to pass them to a CQL filter and execute it. ...
3
votes
1answer
366 views

Openlayers vector layer don't draw well on chrome (single tile)

I have singleTiled layer in OL (using chrome). The layer don't draw completely unless I pan the map slowly to the south (here is example how the layer keep drawing itself each time I pan) : ...
0
votes
0answers
37 views

Ignore Transparent Pixels for Bounds Determination

I am displaying an Image using GWT OpenLayers on a map. My Image has transparent pixels and the system which returns my Image returns a footprint that is equal to the image plus the transparent ...
0
votes
0answers
34 views

openlayers find feature by attribute

//ilce kontrol ilcecontrol = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(ilce) }); ilcecontrol.events.register("featureselected", this, ...
0
votes
1answer
537 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", ...
2
votes
1answer
164 views

OpenLayers.Layer.MapServer not rendering but new OpenLayers.Layer.WMS does

I got the following code: var layern2 = new OpenLayers.Layer.MapServer("Tech", "ServerPathTo_mapserv.exe", { map: "ServerPathTo_My.map" ...
1
vote
2answers
449 views

Display photo in GeoExt popup

I have point feature with name PointPhoto. This feature have attribute: id area PhotoPath Now I am using GeoExt popup to display this attributes, but I cant find a way to display image from ...
0
votes
2answers
985 views

A script on this page may be busy, or it may have stopped responding

I'm using OpenLayers - 2.11,GeoServer 2.13, ExtJS 3.4, and Java for developing GIS based web applications. Recently i'm getting below error message in my application "A script on this page may be ...
0
votes
1answer
140 views

openlayers Googlemap and custom wms

I have a custom wms server the transform for this wms is UTM and i cannot set googlemap layr for background for example my feature in wms is Iran country but googlemap background is Algeria this is ...
1
vote
1answer
97 views

OpenLayers, Get clustered point's val

I'm working on a map with WMS overlays and a lot of markers, my problem is when I try to calculate the average of points clustered, I've found how to differentiate the behaviour and the label text ...
0
votes
1answer
194 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 ...
3
votes
2answers
557 views

Offline Phonegap/Openlayers App

I have a mobile app that uses Phonegap with OpenLayers and Geoserver. Now, I need to make the app available completely offline. The amount of data points can get very large depending on what client is ...
0
votes
3answers
165 views

Is it possible to publish a ArcGIS .mxd file in OpenLayers?

It is possible to publish a .mxd in OpenLayers? I am using ArcGIS 10.0.
0
votes
3answers
152 views

Get google maps small portion for offline application

Can some body help me in downloading some portion of hybrid maps of google as I want to store them in my server and display them on web application using openlayers so that the user will only have ...
0
votes
3answers
726 views

Cluster strategy, problem with labels on uncluster features - undefined

I have vector layer - WFS from GeoServer (Postgis). In the Postgis table there are some attributes e.g.: the_geom (of course), adr_adm, ... So I would like display label: adr_adm on features when they ...
1
vote
1answer
125 views

GWT-OpenLayers - BoundingBox selection

I'm searching for a way to get the bounds of a bounding box a user can drag on a map with gwt-openlayers but i can't figure out how to translate the javascript stuff to the javaside of the wrapper ...
1
vote
1answer
558 views

How to insert a list of parameters from a parametric view in OpenLayers?

After successfully (with the precious help of members from stackexchange) creating a Geoserver parametric view that works as it should, now i'm facing another problem: How to pass a list of parameters ...
-1
votes
1answer
296 views

My wms vector data overlay on openlayer vmap work fine but on osm img is not rendering

i am try to overlay my India roads vector over an openlayer (http://vmap0.tiles.osgeo.org/wms/vmap0) vmap work fine.but i want to do the sam task over osm(open street map), i am trying many different ...
0
votes
1answer
108 views

How to select point feature rendered by picture

I use GeoServer as my gis service and render some points with pictures, SLD code like this: <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource ...
1
vote
1answer
664 views

WFS Layer Not displaying in Openlayers

I've been pulling my hair out for a week trying to figure this problem out. perhaps you can help. I'm trying to display a shapefile in the browser. It works great if I use WMS, but recently I've ...
1
vote
1answer
173 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 ...
2
votes
1answer
2k views

OpenLayers Vector Layers: adding and removing features VS. redraw/refresh

I am currently using addFeatures and removeAllFeatures in my code to get the desired results and this is working OK. However, I have been asked to ensure that the vector layers are not being ...
0
votes
0answers
126 views

OpenLayers Permalink getCenter() Returns strange values

I'm extending the openlayers permalink class to create a custom class that can create a link on the map with an href attribute that points to ...
2
votes
0answers
264 views

Use of Geoserver raster processes within OpenLayers: WCS/WPS problem.

I've been working with some GeoServer processes using OpenLayers as client. I've been successful in those which use WFS as input (like gs:BufferFeatureCollection). My problem comes when I want to use ...
0
votes
1answer
142 views

Openlayers Select Feature: avoiding the on/off aspect of selecting a feature: want to be able to click, then click again

Map here: http://tinyurl.com/potjxlu I can click an orange icon, popup appears, hit the X button to exit out of the popup.That is OK. But if I want to bring that popup again for the same point, I ...
1
vote
1answer
706 views

How to use a variable in Geoserver viewparams?

I just managed to create a parametric view that is working ok when i define the parameter value as, for instance, viewparams:'value:31' However, when i try to pass a value that comes from a variable, ...
1
vote
0answers
125 views

How to make WFS-T layer grid panel with Geoext

I am using geoext,openlayers and geoserver. I am using WFSCapabilitiesStore to make the grid panel. I want to this grid panel WFS-T layer so that on each layer I can draw and edit feature after adding ...
1
vote
0answers
303 views

Lat/long Values in the geoserver's WMS GetFeatureInfo Request

I have tried to send manual Wms GetFeatureInfo request to geoserver with the parameter values X and Y(pixel values) taken from the map object of OpenLayers. I have got the response with the wrong ...
2
votes
1answer
276 views

How to style virtual vertices when using the ModifyFeature control with OpenLayers?

I am building an Android application that uses OpenLayers embedded in a WebView. Being mindful of the imprecision of touch interfaces I am trying to style all controls to be large and easy to ...
1
vote
2answers
223 views

Serving multiple styles from tile server

I installed an OSM Mapnik tile server (according to the switch2osm documentation). Now, i'd like to serve tiles in different styles from the same server. Is this somehow possible?
0
votes
0answers
151 views

Openlayers using google maps as base layer have offset on WMS layer when zooming out

I have WMS layer with points (EPSG 4326) on a base google map layers. I've noticed when I zoom out , the wms layer is offseting to the left. Max zoom in , this is the correct position : Zooming out ...
0
votes
2answers
50 views

Get random point within a multipolygon

Can somebody help me in getting a random point which lies inside multipolygon,i.e I have a multipolygon, then i want to get a random point which lies inside that multipolygon
2
votes
3answers
415 views

Creating a Clickable Map with OpenLayers?

My girlfriend is trying to create a webmap using OpenLayers that is similar to this one, which was done in ArcGIS Server. I thought I'd be able to help her as I have GIS and some coding experience but ...
0
votes
1answer
193 views

Openlayers Custom Renderer - Multiple polygons

I want to render more than one polygon for a feature in a vector layer. So, for example given a polygon render it as normal, then render it again with a different colour and offset by a Y value. I may ...
1
vote
1answer
793 views

Geoserver sql view using an external sql query?

I am trying to figure out a way of producing a view of a layer in GeoServer, using an external sql query. By external I mean, for instance, a user defined query in a php from where all the parameters ...
1
vote
0answers
206 views

Not able to edit or draw new feature in databse geometry data [closed]

var DeleteFeature = OpenLayers.Class(OpenLayers.Control, { initialize: function(layer, options) { OpenLayers.Control.prototype.initialize.apply(this, ...
4
votes
1answer
105 views

Openlayers Auto Pan when drawing

Is there a way to auto pan the map in the direction of mouse location if it hits the extents of the window when drawing line or polygon? It seems inefficient to have to pan by clicking the pan arrow ...
0
votes
0answers
46 views

Override default behavior of double clicking an OpenLayers Popup

I would like to change the position of a popup when I double click it. So if it is in the 'tr' position it would move to the 'br' position, so on and so forth. The current Popup.js code stops the ...
2
votes
1answer
270 views

Qgis OSM and layer projection problem

I am using QGIS 2.1.0, and trying to import my vector layer(parcels) with OpenStreetMap layer. My vector layer (parcels) use EPSG 31277 coordinate system. This is the definition for EPSG 31277: ...
9
votes
5answers
2k views

A good tutorial for Openlayers

I need to create a web map showing many raster layers. I am using mapserver and want to use Openlayers, however I can't find any good tutorial about it. I see a couple of old questions (1 and 2) ...