I have JavaScript application in OpenLayers 3, and my base layer is created from local tiles. I work only in my computer so I do not know why I have CORS error.      var newLayer = new ol.layer.Tile({     source: new ol.source.OSM({         url: '...
i'm new to OpenLayers and i am looking for some help drawing lines on a map, i've been trying various things from various different posts about drawing LineStrings but i can't get it to work! I just need to figure out how to draw a line b...
I am using single layer with three feature and would like to specify z-order but not working anyway.  As per my understanding feature is drawing in same order in which I am adding so I tried by adding in reverse order but it not worked for me.  Code...
I have a map, which I want to display. It consists of a standard map (OSM, Google or Bing) and a layer, provided by Openseamap.org. This layers produces seamarks as images for a map. This should look like this (more or less, without the pink screen):...
When loading many feature footprint vectors onto the map, the openlayers map and web application becomes unresponsive.  Is there any way to improve the performance of the openlayers map with many vectors?    We would like to be able to support at le...
I'm sing OpenLayers 3 to display a map. I want to center the map using latLon coordinates. I'm using the quickstart code to begin with. Using this code, I cannot change the center of the map. I think this has something to do with Spherical Me...
I'm updating a project from OL2 to OL3, but I'm stuck on how to redraw features after changing the feature style.  In OL2, this worked:  hidePoints: function(id) {     if (! this.getMap().center) {         return;     }      var i,     featur...
I am trying to serve up a map in Internet Explorer that works fine in Firefox or Chrome. While debugging I noticed that something was missing when I tried to bring up the map in IE. This is the html that is in Firefox with the working map:  This is t...
I am trying to find out all the features which are visible (viewport) on a layer in Openlayers 3.  I am able to find out a single feature if I add a click event to the map which is as follows. But I am not able to find all the features which are visi...
I posted this question to change maxZoom in runtime using openlayers3 and that works perfect:  map.setView(new ol.View({   zoom: 10,   maxZoom: 17,   minZoom: 10, }));   However, im trying to integrate this solution using the angular-openlayers-direc...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.