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
0
votes
1 answer

Properties don't exist for OpenLayers event.context

I'm trying to follow an example from OpenLayers. https://openlayers.org/en/latest/examples/layer-swipe.html I've imported what I need and I'm working on implementing the example in my code but I'm running into an issue where the properties of the…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
1 answer

Convert Maps to PDF and open PDF Viewer

I am trying to convert the map with some header text. The header keeps overlapping on the map instead of being above header and displaying the map below. I want to add a log and header besides it and display the map below the header can someone…
0
votes
1 answer

How to scale background pattern with the map when zooming in open layers?

I'm drawing a rectangular feature onto a map layer. I have some image pattern I want to display as a background of the feature and I want the pattern to scale with the map when zooming, meaning the pattern has always the same looking background, no…
Jaa-c
  • 5,017
  • 4
  • 34
  • 64
0
votes
0 answers

Openlayers and rotating feature with Modify interaction

I am trying to implement feature rotation in my project. So far I have added select interaction, to select feature that needs to be rotated, and pass it to function, that contains almost all the code, that is provided in Openlayers example of how to…
0
votes
1 answer

How to get to original coordinates from a KML file after creating a vector source from it

I was creating a Vector source from a KML file which I read in. The file had the following LineString in it: -106.048668,36.247039,0…
max0r
  • 1
  • 1
0
votes
2 answers

How to add animated arrow as per the value I have entered in text box in open layers

I tried to add the animated arrow one by one on the string as per the value we are entering in the text box, but it was not possible. can give me solation how I add this. I want when we enter 4 in text box then click add arrow button then add 4…
0
votes
0 answers

Angular open layer toggle issue

I am using open layer map toggle for open and close but when I was opening the toggle with in macro seconds it is coming to normal position. I want it to stay there un till we click on close I have debugged and find that it happening with…
0
votes
1 answer

How we can add multiple animated arrow icon on button click

We are trying to add multiple animated arrow icon on single line string on button click like as when we click start button then add one animated arrow icon on line string and when we click again start button then add new animated arrow icon on these…
0
votes
2 answers

How to add Multiple animated arrow icon on single line string in open layers

We are trying to add multiple arrow icon on single line string in this code but we are not able to add. so how we add multiple animated arrow icon on this code we also add image of your reference. Click Here for image I want when we click start…
0
votes
0 answers

How to create animation on the linestring with arrow sign?

I'm able draw the linestring on the map based on the data but I want to draw the animated linestring as shown in attached image. Could anyone help me out for this from #openlayers community? Inside myLayerFeature I have list of feature with its…
0
votes
0 answers

Unable to add event listener for MouseWheelZoom event in Openlayer map

I am trying to implement a functionality using openlayers with Angular in which I have to add one interaction using MouseWheelZoom. Interaction gets added but control does not come inside the event listener for this when I move my mouse wheel in…
0
votes
1 answer

how to show a pop-up/overlay window

i am trying to show an overlay containing the position of where the mouse is clicked. i referred to the example in openlayers official webpage here but when i run the code, the console.log message is displayed showing the coordinates of where the…
0
votes
1 answer

How to make a variable visible within the scope of a function

as shown below in the code, i am declaring the variable AoC and i want to assign to it the value feature.get(environment.KEY_OF_MVT_FEATURE_1). the problem i am facing, is that the variable AoC is not defined inside the scope of the function…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
0
votes
0 answers

How to pass parameter to style function

in the below posted code, i want to pass the parameter keyGridsAsGeoJSON as input to the function in style attribute.every time i print the value of k which is var k = keyGridsAsGeoJSON i receive the values posted below. i expect that k contains…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
0
votes
0 answers

How to add features to VectorLayerSource

as shown in code2, i have keygridsAsGeoJSON which contains coordinates of some features as geojson.in code1 i am using VectorTileLayer and VectorTileSource. the problem i have now is, i would like to add the features in the array keygridsAsGeoJSON…
Amrmsmb
  • 1
  • 27
  • 104
  • 226