Tagged Questions
1
vote
3answers
70 views
Openlayers vector feature coordinates are not transforming,
I have a OpenLayers vector with a single feature [0]. It's coordinates are in the map projection (EPSG:3413) and I want them in WGS84 (EPSG:4326) decimal degrees. I have the following code which ...
0
votes
1answer
49 views
OpenLayers generate random polygon
I have a world map. I need randomly to generate polygons and render them on map.
I have no problem with rendering, but can anybody suggest how to generate polygons with random geometry? (I need n ...
1
vote
2answers
314 views
Openlayers remove previously drawn polygon on starting to draw next one
Objective:
At any point of time there SHOULD only be zero/one polygon(s) on a vector layer with a polygon control. I need the previous polygon to be removed as soon as user starts drawing the first ...
2
votes
1answer
79 views
In OpenLayers, is there any way to convert polygons to tiles?
I have a OpenLayer map which by enabling a feature by user, a very huge table of polygons (lots of small areas, with information and metadata for each) will appear on the map, which rendering this big ...
0
votes
0answers
88 views
How to create curved polygons using OpenLayers and MapServer? Any Alternatives?
I've created a website that uses OpenLayers, MapServer and a SQL2008R2 database. Part of the website allows users to draw polygons to overlay a map of the UK. Ideally, these polygons need to have ...
2
votes
1answer
116 views
How to remove a hole from a polygon in OpenLayers?
Is it possible to remove a hole from a polygon by using OpenLayers?
How can I do so?
2
votes
0answers
66 views
Cannot reselect polygon after modify
I've got various vector layers on a OL map.
On one layer I have a few draw controls. If I draw a polygon I can select it (the whole pop-up thing works). This also works for all the other features.
...
0
votes
1answer
170 views
OpenLayers polygon fill not working with GeoJSON file as source
I'm trying to visualise some data in a custom shape on a map, and I'm stuck with styling it.
I'm currently using the openlayers framework in combination with a geoJSON file that I generate in code. ...
0
votes
0answers
10 views
Insert name of a polygon and add to database using openlayers [duplicate]
Possible Duplicate:
How do I set attributes when creating vectors using OpenLayers and WFS-T?
Hi everyone I am newbie to openlayers. I have developed an application which provides WMS/WFS. ...
2
votes
2answers
97 views
How can a style be set on a specific polygon using OpenLayers?
Using a polygon id, I want to highlight a polygon, while the mouse is outside of the map area. I can identify the polygon using the following approach:
x = 53;
for(i=0; ...
2
votes
1answer
583 views
How can GeoJson polygons be colored programmatically using OpenLayers?
I'm experimenting with dynamically setting the color values of a geojson polygon. In my geojson file, there is an attribute for each polygon called pop_den. I am trying to update the fillcolor of the ...
3
votes
1answer
319 views
adding polygon to database in openlayers
I want to add a polygon to the database. I used the following code. The problem is that I am to able to save in database. Whatever polygon I draw on map it gets save temporary and as soon as I reload ...
0
votes
2answers
391 views
How can I convert Polygon to LinearRing Geometry?
How can one convert a Polygon to LinearRing geometry using OpenLayers? I'm thinking that I can do this by getting bounds of the polygon, then use this to construct a Points array. Finally, use ...
2
votes
2answers
646 views
How to change the vertex style for editing?
When I use drag feature, then the circles on the polygon edge has the same style.
For example, this OpenLayers site.
I need to change it, I mean they need to be a different color.
What is their ...
0
votes
2answers
181 views
How to retrieve a single polygon from a multipolygon layer in GeoServer
I have a multipolygon layer in GeoServer. The layer represents states within a country. I want to enable a user to search for a specific state, and then only the selected state to be displayed on the ...