Skip to main content

Questions tagged [openlayers-2]

Use this tag when you are using the DEPRECATED version 2.x of the OpenLayers JavaScript client toolkit.

1 vote
2 answers
2k views

I am developing an application that has navigation on various maps, everything works well when a certain map is rendered for the first time, but if you go back to this tab again, the map either does ...
Heliodor's user avatar
0 votes
1 answer
221 views

I focused on an example of H3-JS binning work on Mapbox map canvas. https://gis.utah.gov/developer/applications/suitability/ However, I wanted to work with Openlayers map. With some help I was able to ...
Paul Butler's user avatar
1 vote
0 answers
60 views

I use cluster for points: const clusterSource = new Cluster({ distance: this.configService.config.distanceCluster || 100, source, }); const clusterVector = new VectorLayer({ source: ...
Araviz's user avatar
  • 37
1 vote
0 answers
308 views

I use the common source and vector layer to draw polygon and cutouts inside polygons: public features: any[] = []; addHole(type = "Polygon", feature: Feature) { const modify = new ...
user208869's user avatar
1 vote
0 answers
43 views

I have a feature as point (icon). I try to modify it and recreate a point on the map with a new coordinates position by click. this.modify = new Modify({ hitDetection: this.vector, features: new ...
user208869's user avatar
0 votes
0 answers
505 views

I use Modify object and Translate object for moving point layer: this.source = new VectorSource(); this.vector = new VectorLayer({ source: this.source, zIndex: 900, style: new ...
Araviz's user avatar
  • 37
2 votes
1 answer
700 views

In OpenLayers 2, it was possible to pan the map with either pressing the left button or the mouse wheel (middle button). In later Versions, the mouse wheel options seems to have disappeared. Is it ...
Lokomotywa's user avatar
  • 1,201
0 votes
1 answer
444 views

I am working with web map application Lizmap which unfortunately is working with OpenLayers 2. I want to trigger map click programically on specific position: let event = new Event("click"); ...
The Crasher's user avatar
1 vote
0 answers
2k views

I am trying to print out multiple maps in QGIS 3. Each map contains a few points, and should have context information from the basemap such as city names/road names, etc. somehow helpful to find ...
maycca's user avatar
  • 3,488
1 vote
0 answers
551 views

I would like to center a pop-up on the marker where I click now it is moved to the right and above the marker. I tried two methods: Method 1: var f = map.forEachFeatureAtPixel( event.pixel, ...
CoderCoder42's user avatar
0 votes
1 answer
433 views

With my current implementation if I create a point it is visible only on the first map view. If I move around e.g. move to the right the new view without point is shown. Is there any posibility to add ...
andzaOs's user avatar
  • 11
0 votes
1 answer
169 views

I added a logo image for the map in this way: <div id="map" class="map sidebar-map"> <div class="logo"> <img src="assets/img/logo.png" ...
andzaOs's user avatar
  • 11
0 votes
1 answer
337 views

I have following structure before export: LayerGroup LayerGroup Layer Feature Is there any posibility to keep this structure when export/import KML? I noticed in the KML file after I export ...
andzaOs's user avatar
  • 11
2 votes
1 answer
397 views

I would like to export the features drawn on my OpenLayers map in GeoJSON format. So far everything is working apart from the properties section, which keeps coming with nothing, as you see below. I ...
Geographos's user avatar
  • 3,061
0 votes
1 answer
284 views

I've created a component that attaches a new vector layer on the click of a polygon. I've used custom interactions of openlayers to do so (using ol/pointer). I need to click on a particular coordinate ...
Karthik Bhat's user avatar

15 30 50 per page
1
2 3 4 5
220