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

learn more… | top users | synonyms

0
votes
0answers
34 views

No 'Access-Control-Allow-Origin' header is present on the requested resource. Using Geoserver + Openlayers [duplicate]

This is my code to open a WFS layer from geoserver: <!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8' /> <title>My OpenLayers Map</title> ...
0
votes
0answers
46 views

Bing Open layer shows ok in QGIS and Composer Preview, but is misaligned after exporting to PDF

I have QGIS 2.2 running on a Mac with iOS Maverick. I have prepared a map with layers with different CRS, including a Bing Open Layer as base layer. The project has the 'On the fly coordinate ...
0
votes
1answer
31 views

Using OpenLayers and OpenStreetMaps to display statistical information with colors : possible?

I'm planning to build a statistical tool using OpenLayers and OpenStreetMaps. This tool will have to display statistical data for french departments with colors. What I would like to do is the same as ...
0
votes
1answer
41 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
0
votes
1answer
102 views

Why are map tiles being repeated? Using MapServer and Openlayers

Problem I have: map tiles from my layer are being repeated. Shapefile is projection 3059. I have specified 3059 is in the mapfile and also when creating map object. I know OpenLayers.Layer.WMS is ...
0
votes
0answers
30 views

Openlayers WFS change featureType

I am trying to change wfs featuretype "on the fly" in openlayers. (This method http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html#OpenLayers.Protocol.WFS.v1.setFeatureType) This ...
0
votes
0answers
31 views

How to cache write Google Maps in OpenLayers?

How can I cache write Google Maps in OpenLayers? Cache writing function of OpenLayers works with other maps but I have difficulty implementing it with Google Maps?
1
vote
2answers
105 views

Find closest feature

How can I find the closest feature(coordinates) in a json file from a set lat lon using openlayers. Currently, I get the centroid point(lat,lon) from the selected polygon feature ok, but I Would also ...
0
votes
0answers
36 views

GeoExt2 projection problem with OSM and googlemaps

First of all, I already see the topic in Difficulty to display WMS and Googlemaps layers using Geoext and ext but I'm still not able to find an answer. I'm using the example in ...
1
vote
1answer
24 views

Openlayers active select control on layer prevents drag and zoom

I've build this web-map http://gimoya.bplaced.net/Openlayers/Trails/map.html with bike-trails (retrieved from a KML on my webserver), where several trails from a region are covered by a selectable ...
0
votes
0answers
76 views

CQl Filter Don't work with WFS layer in Open Layers

I used a WFS layer from geoserver in open Layers it's shown on MAP but when I want to use a filter it doesn't work I don't know where the error this is the code : <script ...
0
votes
1answer
31 views

Is there a widget/service to put a marker and send data?

I need to ask people where they want to go in the city, and as a response I need either geocoded location, or a marker on a map. Although everyone knows his home address, not everyone knows the ...
0
votes
0answers
29 views

about updating WFS with popup

I want to ask you something about this How to collect data via WFS and Popup I started to build my own WebGis using openlayers and geoserver, but I'm newbie here I want to add form to update the ...
0
votes
0answers
34 views

Speed-up the GIS dynamic web application

I don't know if this is the right forum to ask this particular question but I would definitely appreciate any support or clue in this regard. I am have made a dynamic web-GIS application on Eclipse ...
0
votes
0answers
47 views

Openlayers doesn't want to show map throught Mapserver

I have a configured Mapserver with WMS service, I know Its working because I tried in QGIS and I can see the map. The problem is that openlayers doesnt want to show the map via mapserver service. Yes, ...
0
votes
1answer
62 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
249 views

how to display the coordinates of a openlayers map with a jquery in my asp.net textbox?

this is my initmap.js OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { }, initialize: function (options) { this.handlerOptions = ...
0
votes
2answers
223 views

Build Openlayers 3 on Windows

On GitHub is a wonderful installation instructions, but most users GitHub, use Linux, it's not worked on Windows.... https://github.com/openlayers/ol3/wiki/Developer-Guide How can I build OpenLayers ...
0
votes
0answers
58 views

Preload tiles in OpenLayers 2 and add them to the map

I have an XYZ layer on an OpenLayers 2 map. Now I've written a function to preload all tiles of map.getExtent().scale(2). That works, but when I pan the map, the tiles still appear after a small time ...
0
votes
2answers
73 views

How to get feature from PostGIS to OpenLayers with ASP.NET?

I need to show my feature from this table in PostGIS in my ASP.NET web page web. Has anyone done that?
0
votes
1answer
55 views

WmsGetFeatureInfo not working in larger scales

I use Openlayers/Geoserver on ubuntu server. Geoserver runs at tomcat6. I have grouplayer of several layers all shown at certain scales. When I click at feature at small scale, getfeatureinfo works. ...
1
vote
1answer
65 views

Optimize openlayers / Geoserver 2.5 with GeoWebCache - reprojection necessary?

I have an openlayers map setup with several base layer options (some served by my own GeoServer) and many optional layers served by my own GeoServer. I've selected Google's EPSG:900913 as the map's ...
0
votes
1answer
56 views

WPS Client implementation in our desktop

How to implement wps client in our system and also specify requirements needed? How to specify the proxy to the OpenLayers.ProxyHost = 'proxy.cgi?url='; var map, client, intersect, buffer; ...
0
votes
1answer
38 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'); ...
0
votes
1answer
264 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 ...
0
votes
1answer
67 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 ...
0
votes
0answers
147 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
154 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 ...
0
votes
0answers
27 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
0answers
30 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
100 views

which framework is good for closed intranet [closed]

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 ...
0
votes
2answers
13 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
0answers
33 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
0answers
39 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
64 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
21 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 ...
0
votes
0answers
13 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?
0
votes
1answer
52 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
2answers
82 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
1answer
36 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
70 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 ...
1
vote
0answers
58 views

Building a road path using openlayers and shapefiles? [closed]

I'm looking to learn OSM and Openlayers. From what I can tell, I need OpenLayers to display the map on a website and I need shapefiles to do any manipulation on the map regarding its topographical ...
0
votes
0answers
30 views

maintain different style for each feature in same layer

on feature selection, I am trying to change feature style of selected feature.so that assign different style to each selected feature that exist in same layer. I have done this successfully but when I ...
0
votes
1answer
83 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: ...
1
vote
0answers
39 views

Multi layer, multi control

I am new to GIS technolgies. I'm working on the final project of my career. I need to have a background map of somewhere on this map I need to create 1 .. N layers in which a particular user can ...
4
votes
1answer
158 views

Editing PostGIS topology in a web browser

I am trying to conceptualize the best process for editing topology from PostGIS in a web browser. Ideally what I would like to accomplish is the loading of a topology (imagine the lower 48 states of ...
0
votes
0answers
52 views

Openlayers - Many broken tiles with vmap WMS in EPSG:900913

I would like to use the vmap WNS (http://vmap0.tiles.osgeo.org/wms/vmap0) in an OpenLayers map. I encounter many broken tiles (pink) when using the srs: EPSG:90013 contrary to EPSG:4326 and that at ...
0
votes
1answer
46 views

OpenLayers/Leaflet render world borders

I am trying to show all world borders. Either using OpenLayers or Leaflet. World borders are taken from here. This code does not work. What I am doing wrong? var Map = { map: null, layer: null, ...
0
votes
1answer
63 views

Geoserver styles - changed feature icon on mouse over

I am using OpenGeo and OpenLayers 3. I managed to set a WMS layer from PostGis (Configure new SQL view) where I show points from coordinates I have in database. I also managed (following tutorial on ...
0
votes
0answers
54 views

How to (using OpenLayers) panTo/setCenter on a OpenLayers GeometryPoint

Xpost from Stackoverflow. First, I'm new to OpenLayers. The following is a snippet of HTML which represents a couple of images on a map rendered via OpenLayers. QUESTION: using the information below ...