OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.
0
votes
0answers
32 views
Show UTFGrid from a local map in MBtiles
Good afternoon:
I have created a map using TileMill, exported it to MBTiles and uploated it to MapBox.
I want to show the map and its UTFGrid using Leaflet and Openlayers.
With this code, I can do ...
0
votes
0answers
23 views
Dynamically scaling PointSymbolizer with external svg without using scaledenominator filter in sld
In this example taken from Graphic Symbology - External Graphics,
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" ...
0
votes
0answers
27 views
Openlayers redraw layers: consecutive redraw calls not working
SETUP
OpenLayers / GeoServer + PostGIS
REQUIREMENT
I have a map with multiple WMS layers and of these I need to refresh a few after inserting a polygon in one of the layers.
PROBLEM
Given below ...
0
votes
0answers
38 views
How to create a vector layer in OpenLayers?
I published/overlay my layers in openlayers from geoserver as wms. Now I want to add/create vector layers on those layer either point/line or polygon, if it is line/polygon I need to display ...
0
votes
0answers
23 views
Why do temporary features disappear when hovered over?
With DrawFeature I'm putting new features to my map. With the hover option of SelectFeature it is possible to get feature information when hovering over it.
Now I have the problem of disappearing ...
0
votes
0answers
43 views
Getting “pointer” cursor at mouseover for rules/symbolizers based clusters in OpenLayers
I successfully used the AnimatedCluster plugin for OpenLayers. My codes uses OpenLayers.Rules and symbolizers. How can I get a "pointer" like mouse cursor when hovering over a cluster of features?
My ...
0
votes
0answers
25 views
Refresh WMS Select Control
I use WMS layer in my application and I need to refresh it with new parameters.
I did refresh the WMS layer correctly but I couldn't find a way to refresh its select control. So I got the new layer ...
0
votes
0answers
17 views
How to add clickable action to each feature from a featurecollection geojson object rendered using OpenLayers?
I have geojson object which is a featurecollection object. I need to render this geojson object as a vector layer on openlayers map. I have successfully rendered the layer. Now i want to add clickable ...
0
votes
0answers
19 views
OpenLayers what is the last event when everything is rendered?
I have a Openlayers map with an OSM layer and a KML layer.
The KML is added by parsing some text from using OpenLayers.Format.KML (so no "loadend" event seems to fire).
What is the last event that ...
0
votes
0answers
38 views
GetFeatureInfo Pop up - Openlayers/GeoServer
I am an OL and GeoServer newbie. I've been trawling the net looking for guidance on how to code a GetFetureInfo request in OpenLayers to retrieve attribute information from a GeoServer WMS running on ...
0
votes
0answers
22 views
Vector Layer not working in opengeosuite
I need to create a vector layer using wfs protocol to give input to my gs:Nearest WPS process.
this.layer2 = new OpenLayers.Layer.Vector("parks", {
strategies: [new ...
0
votes
0answers
31 views
SLD based selection on WMS layers - How to set the new style of clicked point?
I'm trying to follow this example:
http://openlayers.org/dev/examples/SLDSelect.html
When I click on the point, its color should be changed, here is a piece of my code:
control = new ...
0
votes
0answers
19 views
Switching between different feature sets / Change orientation of Openlayers Map
Setup
Entities postgis table:
id | name | the_geom | campus_id
1 | bldg_1 | <b1_geom> | 1
2 | bldg_2 | <b2_geom> | 2
3 | bldg_3 | <b3_geom> | 1
4 | bldg_4 | ...
0
votes
0answers
13 views
Showing all points or features at border if point coords out of visible range in Openlayers
I'm building user-friendly map-system with openlayers and think its very usefull thing
it looks like if we go out from area with point, then point will be displayed at border, and it can be clicked ...
0
votes
0answers
25 views
WMS layer is not overlaying exactly when zooming out. How to add WMS layers to google map layer in openlayers?
My openlayers code is as follows. But there is shift in between both the layers. How to rectify it?
map = new OpenLayers.Map( 'map_element',{} );
var gsat = new ...
0
votes
0answers
15 views
how to stretch GMT raster with gdal to work with google
How can I stretch a PNG raster coming from GMT (Generic Mapping Tools 4.5.6) in such a way that does align with google satellite or bing? such raster is in wgs84 and crosses two UTM zones (17 and 18 ...
0
votes
0answers
15 views
OpenLayers popup control doesn't work after selecting another control
I have created an application using OpenLayers which by default includes the navigation control and the draw feature control. These controls are selected using a control bar similar to the one shown ...
0
votes
0answers
20 views
openlayers addUniqueValueRules default style not displaying
I'm trying to alter the colour of displayed points using addUniqueValueRules in OpenLayers. If I don't use addUniqueValueRules all my points display the default colour (green). However, when I add ...
0
votes
0answers
15 views
How to retrieve latlon values of point that is searched by user?
I want to create a shortest route in openlayers. I created the sql queries of shortest route algorithms and can query shortest route in sql. Now I want to create a search functionality so that the ...
0
votes
0answers
49 views
OpenLayers zoomToExtent when no layers in map
In my app user starts with empty map and can dynamically add new layers. When user adds new layer i do the following:
send request to geoserver for layer capability to get layer extent.
zoom to ...
0
votes
0answers
20 views
openlayers clustering alternative
Is there some alternative to group features in OpenLayers? My goal is to speed-up the process of rendering. Clusters allow to do that a bit faster than rendering just plain features. So, any ...
0
votes
0answers
30 views
OpenLayers Vector Line Feature hard to select
I have a measurement control on an OpenLayers map which allows the user to (unsurprisingly) measure lines and areas on the map. They draw the line/area they want, OpenLayers does the measurements ...
0
votes
0answers
42 views
Add dynamic layer to geoext tree
I'm trying to add a dynamic OpenLayers Layer in a folder(children) of tree.
I've tryed the following code and it works, but I don't know how to associate the layer with a layer of OpenLayers() type:
...
0
votes
0answers
35 views
How to obtain the center of Vector layer created using WFS query?
I created a vector GML layer using a WFS query with a filter. The layer renders fine . However, the layer does not appear to have any features associated with it (layer.features.length is 0 )
I need ...
0
votes
0answers
47 views
Long/lat to tile row and column for a certain layer on EPSG:900913
I have a bunch of XYZ layers rendered in OpenLayers. I want to give a lon, lat and Z value and the system would return the X and Y location of the tile of that XYZ layer.
I found the following 2 ...
0
votes
0answers
32 views
Save openlayers Layer and use later
i am new to GIS, openlayers, geoserver.... I managed to create simple vector layers using openlayers api. My question is how to save, for example vector layer, in order to use it later?
Thank you in ...
0
votes
0answers
84 views
WFS Transaction geoserver Openlayers POST method
I tried to make a transaction data using WFS protocol with the save strategy and when I click on the save button and fetch with firebug I figure out that the POST method didn't receive any response ...
0
votes
0answers
21 views
OpenLayers is not adding marker to my map
I have an OpenLayers map and I create it using a JavaScript function. I then have a button which when pressed calls another JavaScript function which has code to add a marker to the map.
For some ...
0
votes
0answers
27 views
Rotation on label in PointSymbolizer
I have a point symbolizer that should display a symbol image and a label text. Rotation on the symbol works, but I have not found out how to rotate the label text.
This is what I have:
...
0
votes
0answers
107 views
Open Layers, Geoserver WMS and OSM Cloudmade?
While I have some familiarity with GIS, this is my first attempt using OpenLayers.
I am trying to display the following layers in Openlayers:
1) Cloudmade Base Map
2)WMS Data overlay from my ...
0
votes
0answers
51 views
Move OpenLayers.Popup up to 10 pixel and left 15 pixel?
good afternoon, I have a popup that is in the map and I want only move 10 pixels high and 15 pixels to the left, the problem is that when you change its position in latitude and longitude, is in ...
0
votes
0answers
66 views
OpenLayers map not showing on my JQuery Mobile site
I have an OpenLayers map which is suppose to be made using variables from a PHP array once a button is clicked on my JQuery Mobile site. For some reason however, it is not showing on my page when I ...
0
votes
0answers
52 views
GMT raster (*.tiff + *.pgw) in epsg4326 shifts few kms (4326-900913-3857 problem?)
This seems to be an old problem with an already known solution (ie. "...stop using 900913 and start using 3857..."), but not sure whether this problem is about software versions, the raster itself or ...
0
votes
0answers
87 views
How to show a legend using Wax in OpenLayers?
I am trying to add a legend and tooltips to a map using wax. The map is really simple and it is working, but I do not get to show the legend nor the tooltips.
I am using this like reference
...
0
votes
0answers
40 views
Openlayers how to get tile x y z
I am trying to fetch extra data for each individual tile in Openlayers, from my own data server. I mainly have two questions:
How to get the x, y, z dynamically for each tile as in the tile URL, ...
0
votes
0answers
65 views
Problem in GeoServer with applying automaticly created SLD to a layer
I'm trying to create an automatic procedure for uploading shapefiles on a drupal portal website (see Create CMS system using Cartaro for my previous post that is related to this).
Today I've started ...
0
votes
0answers
17 views
calculating st_simplify tolerance for openlayers
I want to display a vector layer in openlayers. Users can scale the map before they load the vector layer and I'd like to simplify the geometry with st_simplify before sending it to the client.
Does ...
0
votes
0answers
33 views
How do I create an openlayers image layer using a layer already loaded?
so I am trying to add an image layer after using javascript's img.load. I use this because I want to check some things with the image first. Then I want to add it to my map. My issue is that I do not ...
0
votes
0answers
53 views
unable to create the polygon using openlayer.geometry.polygon
I tried to generate Point using OpenLayers.Geometry.Point(), which worked beautifully so I tried to produce a ploygon similarly with the same concept, but I m unable to see it. Please go through my ...
0
votes
0answers
39 views
include the robinson projection into open layers
I need to include a robinson projection into openlayers, but i found no epsg code for it.
i have this spherical mercator projection at the moment and need to change it, but i dont know if it is ...
0
votes
0answers
121 views
How do I format a geoserver WMS overlay over an OSM basemap?
First of all, the image won't even display. I am using the openlayers wms layer constructor and it is basically a getmap request more or less. It seems to be a square of same height and width. When I ...
0
votes
0answers
46 views
OpenLayers - Transform resolution
I want display resolution of the map for each zoom level. So I've create event listener for zoom event, but it is displayed in different projection that I want (I guess). So I need to transform this ...
0
votes
0answers
53 views
Render Google Fusion Tables Layer Tiles in OpenLayers
I would like to know if there is a way now to include Google Fusion Table Layers Tiles in OpenLayers, and if yes, is it possible to use the dynamic styling just like in Google Maps?
I know you can ...
0
votes
0answers
60 views
how to get all features from a layer in openlayers?
I deal with geoserver and openlayers,
i use WMS layer for displaying due to loading time is shorter than vector layer.
My problem i couldn't get all features of a layer without event,
For sure i ...
0
votes
0answers
36 views
Slow Wfs Loading
i use postgis 2.0, geoserver and openlayer for my gis development.
i ceate simple wfs which have 100.000 polygon . i try to use it with openlayers. but this wfs layer load about two minutes. because ...
0
votes
0answers
52 views
convert my large svg image into tiles
This is probably going to annoy the more experienced map people here, but I'm sort of new to all this, or at least I don't have a lot of experience.
I know this is a bit strange and not ideal, but I ...
0
votes
0answers
73 views
OpenLayers WMSGetFeatureInfo with Proxy - blocked by server?
I've already been through all the threads regarding openlayers xss problem here at SE. However, I did not find any answer to my issue.
I'm running a Geoserver on Tomcat listening on port 8080. If I ...
0
votes
0answers
62 views
geoserver PointStacker
I'm trying to implement a clustering solution using geoserver (version 2.3.0 ), for this I'm using the Rendering Transformation Point Stacker and the clustering itself works fine.
However I have ...
0
votes
0answers
69 views
How to add geocoder and routing options in geoexplorer in Opengeo suite 3.0.1?
I am using Opengeo suite 3.0.1 and was wanted to know if there is a way to add a geocoding and routing options using osm. Basically, I am trying to add text boxes (one for start point and one for end ...
0
votes
0answers
43 views
How to create boundaries for a map in OpenLayers
I have 2 points say source and target and I wanted to move the control from source to target for that Linestrings whose segments are ariel near are identified and movind towards out of boundaries.




