OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.
6
votes
4answers
353 views
Deactivating Openlayers Cluster after a certain zoom level
I want to deactivate the cluster strategy after zoom level 16.
The Cluster strategy gets deactivated and I also change the style of the original features and redraw the layer. But still it takes the ...
6
votes
1answer
600 views
How to configure custom scale in Leaflet?
I have a custom WMS tileset generated using ESRI ArcGIS Server.
I have successfully configured an OpenLayers page to display this basemap. The code is as follows:
var map = new ...
6
votes
3answers
2k views
Difficulty to display WMS and Googlemaps layers using Geoext and ext
i have the following code on my html file:
// World Geodetic System 1984 projection
var WGS84 = new OpenLayers.Projection("EPSG:4326");
// WGS84 Google Mercator projection
var ...
6
votes
1answer
1k views
Using local mbtiles in openlayers?
--The problem--
I've successfully added mbtiles from Mapbox free online source to OpenLayers, but cannot figure out how to get the mbtiles I've created/stored locally to show up in OpenLayers.
--The ...
6
votes
2answers
1k views
Openlayers geometry: how to convert area from degrees to square kilometres?
I get a multypolygon from my web service and want to calculate the area of that polygon. I was trying to use this piece of code:
var poly = new OpenLayers.Geometry.MultiPolygon(poligon);
var area = ...
6
votes
0answers
175 views
Recommended Eclipse Plugins for development with OpenLayers and GeoExt?
we plan to create an map oriented online application and muse about the 'best' / helpful plugins for Eclipse.
The used technology is OpenLayers and GeoExt.
For example is the Javascript development ...
6
votes
1answer
100 views
Modifying the start/end points of a LineString and maintaining connectivity in OpenLayers
I'm developing an application where the user can view and edit a street grid of a city. The streets are presented as features on a vector layer, and the user has to be able to modify the elements ...
5
votes
2answers
2k views
How to change the WMS Background Color in OpenLayers?
I am using geoserver to serve up an image pyramid basemap. I want to have all areas outside of the data extent be black (instead of white).
I have the map displayed inside of a div tag and changing ...
5
votes
3answers
3k views
OpenLayers - redrawing map after container resize
In my web application, I want to enable users to set the size of the map container.
Everything worked fine when the container was expanded slightly (apparently this is because the tiles that were ...
5
votes
3answers
653 views
Determine if a polygon intersects itself in OpenLayers
I let the users draw polygons and then I try to save them out to the SQL Server 2008 SQLGeography field, but it is giving me an error:
Error 24200: The specified input does not represent a valid ...
5
votes
2answers
2k views
OpenLayers custom request for WMS GetFeatureInfo
In OpenLayers, there is a WMSGetFeatureInfo control that can be attached to a layer and listen to click or hover events on the map, requesting info on the feature being currently clicked (or pointed) ...
5
votes
3answers
3k views
OpenLayers on mobile device: possible to use local map tiles?
Is that possible for an OpenLayers app (running on mobile device) to load the map tiles that are deployed in the device, if the app is able to access these files (e.g., using PhoneGap)?
from this ...
5
votes
1answer
2k views
Can image layer be rotated in OpenLayers?
While working on Ground Overlays, I noticed that it has a tag called <rotation>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
...
5
votes
2answers
481 views
How to time function calls in OpenLayers?
We have an existing application that has a function that wraps the OpenLayers.Layer.Vector constructor, which gets its layer info from a KML source over http. Once this function completes, I need to ...
5
votes
1answer
2k views
Openlayers wfs vector layer
I'm trying to add a vector layer with a wfs layer and it's not working.Can anyone point a solution?
Openlayers code:
var wfs = new OpenLayers.Layer.Vector(
"Stavros Features",
...
5
votes
2answers
1k views
How to disable polygon Label on the vertices (OpenLayers) in Edit Mode
I added the style on the polygon layer like so.
var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); // get a copy of the default style
style.label = "1233456 ha"
...
5
votes
4answers
1k views
The International Date Line wrap around
Using OpenLayers, I added a WFS layer (on GeoServer) with a filter that returns all features (black) that intersect my polygon (yellow) placed over some Latin American countries within certain dates.
...
5
votes
2answers
227 views
How to display a lot of images with OpenLayers?
I would like to display a lot of images at same time. The images are georeferenced (they have extents), with some labels on top of it which, on click, open popup. I can not say how many exactly ...
5
votes
4answers
387 views
How to use OpenLayers for CrowdSourcing/ collect data?
I'm currently making my first steps in OpenLayers, trying to build a page showing a map where people can add data, which is then saved back in our database.
(Background: Mapping of the distribution ...
5
votes
2answers
496 views
How to resize a point on zoom out?
I've added a point on map like this but it is static in size. How to resize that point on zooming?
Map on zoom out
Any guidance and help is appreciated.
5
votes
3answers
1k views
Slow IE8 responsiveness with OpenLayers and many features
Background
Adding about 700 sites to an OpenLayers Map. Firefox 11 and Google Chrome display the sites just fine. IE8, which is the organization's standard and will not be upgraded for the ...
5
votes
1answer
595 views
MGRS in OpenLayers
I am trying to view the Military Grid Reference System coordinates in Openlayers through the MousePosition control. Is there an easy way to accomplish this just through Javascript? I am looking at the ...
5
votes
1answer
2k views
How to parse polygons from GML in OpenLayers?
I'm reading a GML file from an URL. This file contains polygons. I would like to draw the polygons on a map, where each should have a different color. But all examples I found on the web so far seemed ...
5
votes
2answers
1k views
How to change the appearance of a Feature.Vector that's already displayed?
I've created a bunch of Feature.Vectors from Point objects and assigned them a Style. Now I want to dynamically change the appearance of one of the features in real time; e.g., change it from red to ...
5
votes
3answers
953 views
How can I display with OpenLayers the geometry returned from a ST_Buffer in POSTGIS?
Im using PostGIS, GeoServer and OpenLayers, and the thing is that i want to display the geometry result from a query like this:
SELECT ST_Buffer(ST_GeomFromText('POINT(100 100)'), 500);
To perform ...
5
votes
2answers
865 views
Clicking on a polygon-opening a page/link
I have a many polygons on my map serving through WMS from geoserver. I want to implement the task such that when the user clicks on a particular polygon , he should be directed to a html page about ...
5
votes
1answer
149 views
How to check map tiles are loaded in OpenLayers?
How to check if the map tiles are loaded?
I need to know whether all map tiles are loaded on to the OpenLayers map as html contents.... Is there any method to find out or function in openlayers to ...
5
votes
2answers
1k views
How to create Geodesic Polygons in OpenLayers?
I would like to create geodesic polygons in openlayers. This is not the same as this question although VERY similar.
Geographika was able to do it but his solution is based on a circle. I'm ...
5
votes
1answer
257 views
How does OpenLayers determine a layer's projection?
Could anyone explain the strategy OpenLayers take to determine the layer's projection?
For example, if I didn't explicitly specify any projection for a marker layer, what projection would the layer ...
5
votes
2answers
309 views
How to check whether a layer is vector or not in OpenLayers?
am not sure whether this is a stupid question or not.. but I am wondering how to dynamically check whether a layer object belongs to OpenLayers.Layer.Vector class.
Thanks for any replies!
5
votes
1answer
2k views
Is it possible to display the length of each segment with the Openlayers measure control?
I am trying to make a OpenLayers measure tool that displays the length of each segment on top of each segment and the total length of the measurement as shown below:
I have used this example ...
5
votes
2answers
2k views
How to apply custom OSM map style in OpenLayers?
I have a small web mapping application based on PostGIS/GeoServer/OpenLayers.
I'm overlaying few WMS layers served by GeoServer and using OpenStreetMap as a background.
In OpenLayers OSM is simply ...
5
votes
1answer
759 views
Maximum number of Tiled Layers in Open Layers
I'm developing an OpenLayers site where the client wants a dozen layers that can be individually turned on and off, which is a bit of a bummer in terms of performance. The data is PostGIS and static ...
5
votes
2answers
168 views
“Poor” quality when zooming out a WMS-Layer based on GeoTiff data
i am having some issues when using the Geoserver Web Mapping Service to display GeoTIFF-Files. When zooming out (in an OpenLayers-Client or in the Geoserver Layer Preview for instance) the quality ...
5
votes
1answer
299 views
OpenLayers XYZ Unable to Load Local Tiles
I have some local tiles that were generated from OpenStreetMaps using Maperitive. I've tried going through the docs and tests but the map is not loading. I'm not getting any errors in chrome's js ...
5
votes
2answers
357 views
How to create a simple drop down box in openlayers?
I am trying to place a simple drop down box above the open street maps. Can some one guide me how to achieve this... I know we need to make use of open layers.... i tried to create a button with below ...
5
votes
1answer
2k views
How to create a movable point in OpenLayers?
I have the following code:
function mapCreate(lon,lat){
map = new OpenLayers.Map("map1");
var osm = new OpenLayers.Layer.OSM();
vectors = new OpenLayers.Layer.Vector("Vector Layer");
...
5
votes
1answer
1k views
How to add KML data but from variable - not from url?
I have a working map that retrieves KML from a url, but now I need to get the KML data from a local variable instead. Is there support for this, and if so what is the syntax. Searched the api and ...
5
votes
1answer
280 views
GIS project advice
Hello:
I have the following:
Shapefile of the world with the boundaries of each country
Successfully imported shapefile into PostGIS database
Can display map of the world in a browser via ...
5
votes
1answer
78 views
how to display polygons as points until certain zoom level?
can somebody tell me how to display polygons as points until you zoom to some level. I'm speaking about OpenLayers.
So, for example, if the zoom level is less then 10 than it should display feature as ...
5
votes
1answer
256 views
How to get started with map overlays and tiles
I have put quite some time into doing my own research and know in theory what i want to do and some of the steps involved in doing it but I wanted to put this question out to ensure i'm not going in ...
5
votes
2answers
304 views
Can overlays have different resolutions from the base layer?
I am trying to show a regional map on top of base map but without success. While debugging I noticed that my regional map has a different set of resolutions from the base. Is this allowed in ...
5
votes
1answer
995 views
What's the difference in using OpenLayers and Mapbox?
Hey guys I found this tilemill to develop WebGIS application using MapBox. I wanted to know how is it better than OpenLayers and if I have to develop which would be a better options to go for, as I ...
5
votes
3answers
1k views
WMS GetFeatureInfo and CQL on Multiple Layers
I am having issues with querying CQL filtered layers with OpenLayers and GeoServer, using the GetFeatureInfo control. It is ignoring the CQL filter and just querying the entire layer (as evidenced by ...
5
votes
1answer
446 views
Creating animation point using openlayers and geoserver
Before getting started on creating points that are animated like this using flash
http://adventure.nationalgeographic.com/adventure/trips/americas-best-adventures/map/
I would like to know if it is ...
5
votes
1answer
545 views
How to create a balloon for a dynamic KML file?
I want to create a balloon for a KML file that dynamically moves.
The example that I am working on is sundials.html.
Let's say that the KML is moving. How we would get the balloon to move as well?
...
5
votes
3answers
261 views
How to update feature positions with clustering in OpenLayers?
I have an OpenLayers 2.12 map with a vector layer with a cluster strategy. All the static behavior is how I want it. Now I'd like to add the possibility to update the features' position. I do this ...
5
votes
1answer
334 views
Efficient Outputs for GeoServer Vector Data
Ok, here's our problem. We have a mapping application at http://explorer.geowessex.com which uses OpenLayers and GeoServer for delivering the data. The data is potentially endless and we have very ...
5
votes
2answers
1k views
Layer misalignment with UK Ordnance Survey data and OpenLayers
I am in the UK and my QGIS projects are based on UK Ordnance Survey mapping data and are set up in EPSG:27700. Whenever I have tried dropping an OpenLayers layer (Google Satellite/Bing Maps Aerial) in ...
5
votes
1answer
581 views
What is the best map provider solution for repetitive routing use?
[edit]
What is the best solution in terms of cost effectiveness, stability & speed for running a lot of routing requests and comparing them. lots of times over and over?
I understand now that it ...
