0
votes
1answer
17 views

OpenLayers: How to remove custom controls?

I am trying to remove custom draw controls from my OpenLayers application which I create like this: var drawControls = { polygon: new OpenLayers.Control.DrawFeature(polygonLayerFreehand, ...
1
vote
1answer
253 views

openlayers - export map to canvas problem

I am trying to make a export control to export the map as image file. I found this example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html so i added the ...
1
vote
0answers
35 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: { ...
1
vote
1answer
39 views

How to reset the length of the control of scaleLine in OpenLayers?

I want to change the style of the control of the ScaleLine,but I have no idea where to change it,anybody can give me some advice? map.addControl(new OpenLayers.Control.ScaleLine());
1
vote
0answers
325 views

Add layers from WMSCapabilitiesStore to MapPanel and select polygons

I created a store and added layers to a grid Panel, when you click add layer to map it works fine, the problem is that when I call the function controle(layer) I can't select polygons in the layer ...
2
votes
0answers
99 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. ...
2
votes
1answer
179 views

Openlayers - Loop through control collection

Is there a way to loop through the collection of map controls that have been added to an OpenLayers map?
2
votes
1answer
199 views

How can I enable panning using Openlayers and a vector overlay with controls?

I am creating a map using the following code: map = new OpenLayers.Map({ div: "map" }); Then I load in a geojson polygon layer and add two controls var highlightCtrl = new ...
2
votes
1answer
1k views

Openlayers error after removing selectFeature control

I am using a selectFeature control for a point layer in OpenLayers 2.12. I have a problem after removing the selectFeature control from the map. The reason why I want to remove the control is because ...
3
votes
1answer
630 views

toggle clustering with map controls

I've made a map with openlayers and have the vector features clustered with a clustering strategy. Now I want my users to be able to toggle this behaviour with a control similar to the layerswitcher. ...