replace to OSM support OpenLayers

update @smellman's #507 with rebase to fix travis build