osmbuildings icon indicating copy to clipboard operation
osmbuildings copied to clipboard

OpenLayers3

Open cscredhat opened this issue 7 years ago • 2 comments

Hi, I have tried to use OSMBuildings-OL3 in my project to render a city but failed,then I tried to run the file https://github.com/kekscom/osmbuildings/blob/master/tests/ol3.html but could not show any buildings on ol3. Finally I thought that I found the cause of the problem. Here's the screenshot of the problem I have found. console

I hope you can take a little time to fix this problem,thanks a lot !

cscredhat avatar Jul 10 '17 03:07 cscredhat

Hi, OpenLayers3 is not officially supported and I can't barely give support. If there is anything you would like me to have a look at, please prepare an example with your code. Thank you very much.

kekscom avatar Jul 10 '17 15:07 kekscom

I had found a bug about the plugin OSMBuildings-OL3 in this project. There is a problem with the code " map.get('target').id" at line 33 of the file https://github.com/kekscom/osmbuildings/blob/master/src/engines/OL3.js .It causes ol3 can not show the building when I use this plugin. In fact,the code "map.get('target')" has got the id of the map,and then call ".id" is superfluous.Here is the test code. test.zip,I hope you can fix it.Thank you very much.

cscredhat avatar Jul 12 '17 06:07 cscredhat