Questions tagged [angular-openlayers]

is a AngularJS directive for the OpenLayers JavaScript library

angular-openlayers-directive is a AngularJS directive for the OpenLayers 3 JavaScript library. It’s used to embed OpenLayers maps in an AnguarJS project.

Related Tags

References

110 questions
1
vote
1 answer

Angularjs Openlayer draw polyline

I hope to find a quick answer for my problem. I am using openlayer directive (https://github.com/tombatossals/angular-openlayers-directive) to draw a map in my App. I would like to add polyline to the map which shows a route on this map. I could not…
mayu
  • 221
  • 2
  • 7
1
vote
0 answers

openlayers-directive create layer for markers

I use Openlayers-directive and trying to create a layer with the markers. I looked examples this and this My view (SLIM): openlayers ol-center="center" ol-defaults="defaults" custom-layers="true" ol-layer ol-layer-properties="layers.main" …
1
vote
1 answer

OpenLayers3 how to write tile to local storage

I am making a app project with Openlayers 3. There are several pages which all use map. So I want to write tile to local storage when the user operate some map. When the user operate the map of the next page, I want to first search the local storage…
JiaoXN
  • 65
  • 6
1
vote
0 answers

Handle overlay click using stopevents to false

I have a web app based on angular-js and openlayers3 I have an overlay (popup) with "stopEvent : false" I have set an ng-click on an element inside that overlay The event is correctly fired on desktop (even with smartphones resolution, so the css…
user3471528
  • 3,013
  • 6
  • 36
  • 60
1
vote
0 answers

Openlayers - Interaction Click Handler and DrawEnd

I'm having some trouble with my DrawEnd and OnClick event. I've tried changing the condition to singleClick, click, and have removed it. If Condition is added to the interaction, DrawEnd is not called (I Need DrawEnd to place the point) If I remove…
1
vote
0 answers

How to show form in a pop up of a marker using angularjs-openlayers-directive?

I am using angular-openlayers-directive , and I want to show a form and get inputs from the form. I tried changing the label message to form template, but instead of form only a small pop up is being shown which contains nothing. label: { …
1
vote
1 answer

Angular OpenLayers - Zoom to box with bounds

I tried to figure out how to zoom the map to box with bounds but couldn't find a good example. I tried with angular.extend($scope, { offset: 0, center: { lat: 30.0047, lon: 31.2586, bounds:…
saledo
  • 23
  • 6
1
vote
1 answer

Loading Coordinates in a Factory Asynchronously in Angular

My call to the factory returns too quickly in my map controller. I am trying to set the centre of the map however since the call to geo returns undefined it never sets centre. However the coordinates are grabbed in the geo factory. They are just too…
sitrucj
  • 118
  • 13
0
votes
0 answers

How can I fit a rectangular image to a polygon Openlayers v7?

I need to fit the image to the geometry of the feature. this is my code ( I'm using Angular 14 and openlayers 7): this.map.on('click', (e) => { const feature = map.forEachFeatureAtPixel(e.pixel, function(feature: any){ return…
0
votes
0 answers

Unable to get the Correct URL from the getFeatureInfoUrl method in OpenLayers 7 using Angular

I want to get the Information of the Layer and display it to the user. Here I used getFeatureInfoUrl method of OpenLayers 7 to get the URL but I am getting the BBOX,I and J values as NaN I have to get the URL like this :…
0
votes
0 answers

map.foreachfeatureatpixel() not working in angular typescript open layers 7

The code working in normal JavaScript finely but in Typescript (Angular) it was throwing an error that this.map.forEachFeatureAtPixel(), this.map is undefined and cannot read properties of undefined. This is my code : public selected:…
0
votes
0 answers

Microscope slide images load as multiple small tile images using open layer

I have larger sizes (more than 10GB) of microscope slides (ndpi, svs, tiff) images. To display that existing project member using the open layer 3 versions. While loading some images are converted into small multiple tiles(tileUrlFunction 40 API…
R.G.Krish
  • 487
  • 5
  • 22
0
votes
0 answers

How can I use OpenLayers Swipe with VectorLayer

Currently I'm tasked with comparing Vector objects as they've changed over time based on the year a user selects. I've been using Open Layers Swipe as a guide https://openlayers.org/en/latest/examples/webgl-layer-swipe.html I just realized this is…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
1 answer

flip OpenLayers WebGL swipe functionality

I'm currently using this example in my application https://openlayers.org/en/latest/examples/webgl-layer-swipe.html which overlays the left side of the map with a lay that you can extend over your base map. I need this exact functionality however…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
1 answer

How do I style a range control to include a vertical line

I'm working with Openlayers and I've implemented the layer swipe control. https://openlayers.org/en/latest/examples/webgl-layer-swipe.html I would like to have this same functionality with a line extending vertically across the map. Something like…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57