OSM set up OpenLayer to connect to local TileServer

المشرف العام

Administrator
طاقم الإدارة
I just set up local tile server following these instructions https://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/

and I want to deploy OpenLayer on local too, such that it communicates with the local tile server.So I got v3.5.0.zip from here:http://openlayers.org/download

I am looking where to modify the code in openLayers libraries to make them contact the local tile server. I am testing on example below. Can anyone help me to figure out how to make this set up, I've tried to modify it by myself in a couple of places, but it didn't work

.map { height: 400px; width: 100%; } OpenLayers 3 example My Map




أكثر...
 
أعلى