kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

OpenLayers3 #105

Open cscredhat opened 7 years ago

cscredhat commented 7 years ago

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 !

kekscom commented 7 years ago

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.

cscredhat commented 7 years ago

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.