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

Tile Size remains the same as default which is [256,256] in OpenLayers

I am trying to add a custom layer using XYZ source on the Open Street Map. I want to add it to a certain coordinate. I want to change the tile size to a different value than the default value. I am not able to change the tile Size to any…
Ashim
  • 877
  • 2
  • 12
  • 22
0
votes
0 answers

How to change tileSize in XYZ (tileLayer) from default([256,256]) to something else for openlayers?

I am trying to change the tile size for my TileLayer in openlayers and I have not been able to change it. No matter what I set the tileSize to be it is always [256,256]. Also, The files I am getting from local_url is 1900x1268. Below is the…
0
votes
1 answer

What type of file does the openLayer/TileLayer/source require?

import { Component, OnInit } from '@angular/core'; import {Map} from'ol'; import TileLayer from 'ol/layer/Tile'; import Stamen from 'ol/source/Stamen'; import View from 'ol/View'; import {transform} from 'ol/proj'; import Zoomify from…
Ashim
  • 877
  • 2
  • 12
  • 22
0
votes
1 answer

Different types of Tiles in Open Layers

I am new to Open Layers and i stumbled upon different types of tiles which are: image tile, Tile, Vector, Vector Tile. I would really like to know the difference between these four. Also, would like to know which one of these are the faster for…
Ashim
  • 877
  • 2
  • 12
  • 22
0
votes
0 answers

Open Layers 'instanceof' replacement for 'getZIndex'. How is the replacement serving the same purpose

In the new version of open layers 'instanceof' is replaced with getZIndex. How is it serving the same purpose as checking whether the style is a style object or not. From online forum, getZIndex tells us about the rendering order of the object.…
user2856692
  • 125
  • 2
  • 4
  • 8
0
votes
2 answers

how to zoom into a location by using click button in Angular

I would like to zoom in openlayers library to a location eg: Berlin when the user click on the button. can someone tell me how is it possible to be done? Below are my code: app.component.html
jibu2010
  • 23
  • 7
0
votes
0 answers

Openlayers directive angularjs layer-clustering

I used angular-openlayers-directive from this link: https://github.com/tombatossals/angular-openlayers-directive I want to achieve this effect:…
0
votes
1 answer

OpenLayers 3 draw path with coordinates

I'm trying to use the Geolocation service of Openlayers 3 to map the users movement and collect coordinates based on distance and then either provide a measurement or a polygon shape that will be displayed on the map. I've done quite a bit of…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
2 answers

Angular 5 and OpenLayers 4 not displaying WFS

I can't seem to solve the poblem of how to display a WFS map. I am currently displaying WMS layer as followed: let wmsLayer = new ol.source.TileWMS({ url: mapService.url, params: { LAYERS: mapService.layers, TILED: true, FORMAT:…
ill
  • 352
  • 2
  • 4
  • 23
0
votes
0 answers

Use values from object, angular 4

I use a Serice to get some live-data from a client. The live data will be saved in my Service: @Injectable() export class GeomqttService { client: any; liveData = [ { topic: '', …
Steffn
  • 275
  • 1
  • 6
  • 21
0
votes
0 answers

Openlayers 4 Marker Events (8302859777)

I am working on Openlayer4. There are no marker events in the official documentation. So can you please provide me the appropriate link or code to handle the marker events in OpenLayers 4. Like: Marker On Click Event Marker Double-Click…
0
votes
1 answer

Latitude and longitude change dynamically in OpenLayers

I am trying to point my address on a map in OpenLayers by using the code below : var rome = new ol.Feature({ geometry: new ol.geom.Point(ol.proj.fromLonLat([12.5, 41.9])) }); rome.setStyle(new ol.style.Style({ image: new ol.style.Icon(/**…
0
votes
2 answers

angularjs map directive for openlayers does not get scope value

I want to create an angular map directive for openlayers map application. For example this is an example of map. I created an angularjs directive. (function () { "use strict"; angular.module("my.map").directive("map", [mapDirective]); …
barteloma
  • 6,403
  • 14
  • 79
  • 173
0
votes
1 answer

Centering the map depends on the markers in Angular OpenLayers directive

I use Angular-openlayers-directive by tombatossals . Is there a way to center the map depending on the markers?
radek.
  • 368
  • 1
  • 3
  • 16
0
votes
1 answer

OpenLayers 3 (3.3.0) Select Feature one at a time

Using openlayer 3.3.0, we have a map divided into counties, each county is a 'feature', I want to select a feature and change its border colour, when I select another feature, I want the previously selected feature to revert back to its original…
BrokenEyes
  • 192
  • 2
  • 18