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

learn more… | top users | synonyms

1
vote
1answer
50 views

CartoDB map in openlayers

Is there a way that i can upload my CartoDB map in Openlayers as a WMS layer or Vector layer. Here is the my CartoDB map link. http://cdb.io/1nxdrpf
0
votes
1answer
23 views

How to Update Multiple Fields of one Layer Using WFS Service

Trying to update two fields of a shapefile using a WFS update service published from GeoServer 2.4.3 with OpenLayers 2.13.1. I have a JavaScript with all the OpenLayers fun and a HTML document with ...
0
votes
0answers
40 views

Adding vector layers on top of gdal rasterized image

I used gdal2tile.py on a big image (actually its screenshots of image map) and now I have a nice openlayers-powered map I can pan and zoom around. But now I want to add a vector layer on top so I can ...
0
votes
1answer
18 views

geodjango + OL bbox strategy

I managed to learn the fundamentals of Django, GeoDjango and know OpenLayers for a while. Now I realize a project with a lot of objects with point geometries. To make the user map fast and responsive, ...
2
votes
0answers
36 views

Is it possible to link Google maps API for business from Openlayers?

I want to know whether it is possible or not? to get Google's 3 layer types in openlayers, nothing more. Just I came across a web-page about supplying private key from openlayers to google maps for ...
1
vote
0answers
18 views

Openlayers OverviewMap control with vector layer data display

I am creating an OverviewMap control in the map and want to see the content of a Vector layer in the overview map too. var mapOverviewOptions = { mapOptions: { ...
0
votes
1answer
60 views

How do I create a static popup in OpenLayers that contains HTML content?

I would like to create a static popup using openLayers 2.11 which is always in the lower-right corner of the screen and appears on map load. The idea behind this is to have a logo for my school ...
4
votes
0answers
47 views

GeoJSON shape distorted on Leaflet.js spherical mercator WMS map [closed]

I have a map with a simple WMS layer in spherical mercator projection (rendered by a OSM-Mapnik-TileCache server stack, everything is in EPSG:900913 / EPSG:3857). First: I can't understand why, if ...
1
vote
1answer
30 views

OpenLayers Projection and Datum Question

I had a conversation with a co worker that was asking about an OL map I am developing. She asked me what the 'projection' was and I said EPSG:4326. She didn't know what that means, so I said it's ...
3
votes
1answer
81 views

Loading multiple feature types as one layer in OpenLayers

I have a kml file which contains some polygon and some point features in the same file. I am trying to load and view this layer on my basemap in OpenLayers. The problem is that the polygon features ...
0
votes
2answers
99 views

OpenLayers Point was removed after draw Path

I want to draw some path by using OpenLayers. Add new Layer var mLayer = new OpenLayers.Layer.Vector("New Layer", { styleMap : new OpenLayers.StyleMap(markerStyle) }); var ...
0
votes
0answers
20 views

Access to the nearest line by clicking on OpenLayers

i need to access to the nearest line by clicking on my Layer how can i do it? for example take a look at this photo.
3
votes
4answers
84 views

How to select features in OpenStreetMap

I'm using OSM (online) with OpenLayers to show my map (I don't have a mapserver) but when I do this: map = new OpenLayers.Map( 'map', {numZoomLevels: 7, units:"km", minZoomLevel: "10" } ); ...
0
votes
0answers
17 views

Adding dynamically created sld to openlayers map

I am trying to create an sld dynamically using parameters accepted from user. The problem is that when I create the sld and add it to the layer the openlayers get request error occurs. I come to the ...
0
votes
2answers
20 views

OpenLayers Handler Point image

I am trying to draw a marker by EditingToolbar but I don't know to change style of point. I want to draw an image instead of a default point. Could you show me how I do it?
2
votes
3answers
69 views

ShapeFile to GeoJson conversion

I am working with OpenLayers. I want to convert ShapeFile into GeoJson format and send it to browser to show with OpenLayers. But problem is when the size of my shape file is so big like 60MB or ...
0
votes
1answer
21 views

Change map Options in OpenLayers does not work

I have an OpenLayers map with maxResolution: 25000 as an options. After calling a function, I want to dynamically change this maxResolution. I've tried this : map.setOptions({maxResolution: ...
0
votes
1answer
33 views

Mapserver WMS, features clipped and positioned

How can I prevent features being clipped at tile boundaries in an WMS layer as per the picture The arrow and line segments are being clipped when viewed in openlayers as a WMS layer. The map file ...
0
votes
0answers
11 views

style loses to default(orange) with zoom in and out in openlayers

i was doing a project using openlayer and did some code to load wfs vector layer with STYLE on loading and during mouse hover which worked well .but when it zoomed in or out for the first time it ...
1
vote
1answer
24 views

multiple users on one wms layer - style and filter

I am using geoserver to show Points data from MySql in OL. The data saved in one table for all the users - 'Points' with a geometry field and Id of the user. I want to be able to let the users to see ...
0
votes
1answer
24 views

Missing Layer in OpenLayers

When I try to include the "fwp layer" from geoserver 2.4 (Ubuntu 12.4 VServer) into my code it doesn't show up. But the geoserver layer preview (OL) shows the right image. The GeoExplorer preview ...
0
votes
0answers
52 views

OpenLayers plugin fails to install

When I try to install OpenLayers plugin for QGIS 2.2.0 Valmiera I get the error message the plugin is broken; python said: 'QPyNULLVARIANT'object has no attribute '_getitem' Does anyone have any ...
2
votes
1answer
43 views

Split data for OpenLayers

(I gave up. I already spend 10 hours reading internet and I am not any closer to get the job done.) If I start at the beginning: I have country map divided into 12 regions. I have country map ...
0
votes
1answer
60 views

Issue with a point insertion into a Geoserver points layer. WFS-T

How is the best way to insert a feature from the client side into an existing GeoServer layer? Maybe using an ajax call and JSONP? Or OpenLayers (i can't figure out how to have the proxy working)? ...
0
votes
0answers
15 views

LayerSwitcher problem in FireFox: layer after turn off and on are not displayed

I have a problem displaying layers using the LayerSwitcher. The problem only occurs on FireFox and not in the IE. On some applications, layers which I turn off and again on, are not displayed until I ...
1
vote
1answer
50 views

OpenLayers behaves problematic after certain zoom level in Google Maps Satellite view

I have some polygon data in .shp format to show in Google Maps Satellite view. I can show them well until certain zoom level. But after certain level (zoom level 17 or 18), OpenLayers layer and ...
0
votes
0answers
46 views

Openlayers GetFeatureInfo not working

I installed apache2 and GeoServer, then set up the proxy.cgi. I imported shp based multipolygon file into geoserver. I can access via geoserver openlayers viewer but when I want to do it same in a ...
0
votes
0answers
33 views

How to achieve labeling in openlayers as Google did?

I am tried to find a solution for my question. Please look the images below. Google Google are awesome!!.. They are doing fantastic technique in labeling part. Please look the marked labels, the ...
0
votes
1answer
21 views

WMS Geometry Vector point label Styling

How can we add category based styling to geometry point my application show geoserver rendered map, and all the map POI are directly fetched from database and shown to the map.i need know how we can ...
2
votes
1answer
89 views

Transform projection from EPSG:4326 into EPSG:900913

. i've got this problem about projection. .i just wanted to know what am i missing. . i already displayed map base layer using openlayers through base_layer = new OpenLayers.Layer.WMS( "OpenLayers ...
1
vote
0answers
177 views

Access-Control-Allow-Origin problem when loading json file from Amazon S3 to display in OpenLayers

This is my code for displaying geojson in OpenLayers, where "geourl" is directed to a json file in Amazon S3. geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new ...
1
vote
1answer
49 views

How to automatically transform between base layer and vector layer in OpenLayers

I have a simple example on http://jsfiddle.net/29bsw/ I have a map with an OSM layer as base layer and an additional vector layer. The projection of the map is defined as EPSG:900913 and the ...
0
votes
0answers
50 views

How to draw 3d objects from .kml file on gwt-openlayers map?

I tried to run gwt-openlayers KML example on my PC but failed to see KML layer. I set protocolOptions.setUrl("http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/kml/lines.kml"); instead ...
0
votes
1answer
39 views

OpenLayers snap to road

i have some marker on my map, and i am trying to draw line between the marker but i want it follow the road ,when i used Google map i follow this example... ...
0
votes
1answer
32 views

how do i update the sld of layer dynamically

I am using Geoserver 2.1.3 and Openlayers2.3. i have set the default sld for each layer in geoserver which it take by default on map startup, but when i update the sld using code ...
2
votes
0answers
80 views

It is possible put highcharts chart in openlayers popup?

As title. I build a openlayers map on my website. and there are many feature vector on the map. now I want to put a highcharts charts in popup. to show the temperature in every city something Like ...
1
vote
0answers
12 views

Openlayers lanugage encoding problem

I'm trying to change OpenLayers.Lang file to turkish. I succeded it to some extend except for encoding. when I use şiüçöİı chars that are spectial to turkish, they are replaced with some strange ...
0
votes
1answer
50 views

WFS-T demo with local Geoserver not responding

i have installed the geoserver in my local system and i tried to run the example code from openlayers the code as below <!DOCTYPE html> <html> <head> <meta ...
1
vote
2answers
73 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but i couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application got few WFS layers from openlayers and ...
0
votes
1answer
37 views

Geomedia WebMap WFS to vector marker layer in Openlayers

Looking for minimal example/advice on getting a WFS service to show up as a vector layer with markers/icons in Openlayers map. I have created the WFS service in Geomedia WebMap 6.01.11.19 and the ...
0
votes
0answers
43 views

OpenLayers WMS to Leaflet with EPSG:2170 projection

This is the original code for OpenLayers 2 var res = [ 1000.0 / 4.0, 1000.0 / 8.0, 1000.0 / 16.0, 1000.0 / 32.0, 1000.0 / 64.0, ...
0
votes
1answer
41 views

JS/browser API library to show/interact with many markers with the best performance?

What's the best Javascript library that can show about 50000 (and more) clickable markers without resorting to things like clustering markers,etc? The markers are clickable and I want to associate ...
1
vote
0answers
14 views

Get features WMS under a polygon in layer-vector

I have the buffer of a polygon in a layer-vector, I want to know what features of a WMS layer are covered by the buffer, as the SLDSelect Control but with a polygon drawn. any ideas? thanks in ...
1
vote
1answer
53 views

Geoserver WMS layer does not show in OpenLayers

I'd like to overlay a Geoserver WMS layer in OpenLayers & OpenStreetMaps. I'm having problems because the wms is not showing on top of the OSM layers (mapnik, cyclemap). This is the code: ...
1
vote
1answer
74 views

OpenLayers pan to CQL filter result

I'm new to OpenLayers and looking for some help. I would like to filter my shapefile with CQL and display the result. (that's actually working :-) The Problem is that I don't know how to pan the map ...
0
votes
1answer
63 views

Check if property exists on features in layer

I was wondering if there is a good way to check to see if a property exists on a particular feature layer in GeoServer? My use case is that I have a bunch of features I want to display on a map. Some ...
0
votes
1answer
13 views

How to FeatureEditorGrid configure and use in FeatureEditor

I am new User of opengeosuit. I want to configure FeatureEditorGrid plugin to change the column header to display name. My basic requirement is to customize column label like my table column is "pop" ...
1
vote
1answer
40 views

Unwanted features returned with gs:Clip

I am working on a tool for my map but I’m running into some problems using gs:Clip. The user draws a line. All the polygons from a certain layer that intersects the drawn feature have an attribute ...
0
votes
0answers
28 views

Automatic map outlines

I have some building site plans for different conference events with the various stands plotted (usually all as different sized rectangles), we have a simple editor based on openlayers that someone ...
1
vote
1answer
55 views

GeoJSON vector layer created using OpenLayers is broken

What i want to do here is to create a vector layer (using openlayers) from a GeoServer JSON Response. Actually i'm doing this: var url = ...