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

Angular OpenLayers - Marker size

Is it possible to change marker's custom icon image size? If i set inside style size like this style: { image: { icon: { anchor: [0.5, 0.5], anchorXUnits: 'fraction', anchorYUnits: 'fraction', …
saledo
  • 23
  • 6
0
votes
1 answer

Full window ui-view of openlayers map

I have an angularjs app with Angular Material made with the yeoman fullstack generator. My index.html has a navbar and a ui-view to show the sites content.
sitrucj
  • 118
  • 13
0
votes
0 answers

Angular OpenLayers - Creating a vector layer

Hi guys I'm trying to create a vector layer using the angular-openlayers-directive. But a keep getting back this error: TypeError: Cannot set property 'index' of undefined at addLayerBeforeMarkers ... And this is the code I'm using to configure…
-1
votes
1 answer

Remove event context canvas render when finished

I'm using OpenLayers to compare two Vector Layers. One Layer is the main layer and gets loaded with the map the other layer get's loaded after when I want to compare the 2 layers. (Desired behavior) When I am done comparing I want to go back to the…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
-1
votes
1 answer

How to close Polygon during drawing OpenLayers?

I use Draw obejct to draw default polygon. It gives the following result: polygon drawing OpenLayers As you can see, the polygon is not closed. How to close it during drawing like it works after complete drawing? Maybe dont close, but draw the last…
-1
votes
2 answers

which values are available in event.target and how to access it

i am following an online workshop and examples which you can find it here : https://openlayers.org/en/latest/examples/mouse-position.html in the example posted in the above mentioned link, in both of the functions var projectionSelect =…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
-1
votes
1 answer

Marker is slightly shifted(Projection problem)

I have an app that displays gps markers on the map. The coordinates are from images and they are correct, but the marking is very inaccurate. Here is my code: https://stackblitz.com/edit/angular-ivy-c97txg?file=src/app/app.component.html The…
0bmis
  • 46
  • 1
  • 8
-1
votes
1 answer

OL OSM get center point of a specific Layer

I am using Open layer OSM map with Angular to browse countries then states and then cities accordingly. I am able to level up as per selction and adding new layer for each. I am not removing but Just hidding previous layer suppose if someone…
Khushi
  • 63
  • 8
-1
votes
1 answer

Why is adding Openlayers v5 to Angular (6) making the SPA download much larger?

Openlayers is a very nice package for working with maps. My Spring Boot, Angular and Leaflet SPA has a vendor.js file of 4.2Mb. Replacing Leaflet by Openlayers 5 gives a vendor.js of 6.8Mb. Noticed differently: adding Openlayers to a bare Angular…
tm1701
  • 7,307
  • 17
  • 79
  • 168
-1
votes
3 answers

Openlayers dateline crossing linestring disappears

I am working on openlayers, there is an issue when I try to add a linestring on the map which crosses the dateline several times. To display the linestring across two worlds in the continuous segment I have added a function HandleDateline() which…
-1
votes
2 answers

How to download the OSM tiles for selected part of map

I want to download the map offline for a selected part of the map with single Zoom level with Openlayer OSM layer. I have got the four corner of map i.e display section of a map. But need to get the all tiles image or tiles between that four…
-1
votes
1 answer

How to get coordinates on double click on Openstreetmap?

I am using angular-openlayers-directive , I want to get coordinates of the point where I double click. A similar question: Convert point to lat lon But I want to use it in angularjs.
-2
votes
1 answer

How to draw the multyline in OpenLayers?

I have learned a Draw object in Openlayers. I try to draw the dotted line when user moves the mouse. When user clicks the last and prev lines should be replaced on straight line. How does it work, should I use two different drawing ayers and switch…
Daniella
  • 1
  • 2
-2
votes
1 answer

Use Openlayers in NativeScript Project

I am new to NativeScript and have knowledge of Angular. I am trying to insert a map to my mobile app with Openlayers. In Angular, in other words HTML, we can create a div and let openlayer draw the map on it. However, I can't find any equivalent to…
zhangjinzhou
  • 2,461
  • 5
  • 21
  • 46
-2
votes
1 answer

Is there any chance to change drag map direction key(Alt+Shift+Drag) to Ctrl+Drag in openlayers 5(keybinding)

in my app am using angular 6 and openlayers V5. am very new for this openlayers i have done directions, am able to set view direction(input client's choice) i have changeling to drag on map directions using Ctrl+Drag instead of…
kks
  • 342
  • 5
  • 25