Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is repost as didn't get my expected answer. Please help me as I am newbie.

I have setup the PHP Tile Server 0.1 and when I am calling the PHP server it showing the followingenter image description here

Now I am triyng to visualize the map using openlayers. I am using the following code. I am just in the beginning stage so small mistakes may be really easy to me.

  <title>OpenLayers Example</title>
    <script src=""></script>
      <div style="width:100%; height:100%" id="map"></div>
      <script defer="defer" type="text/javascript">
        var map = new OpenLayers.Map('map');
        var TMS = new OpenLayers.Layer.TMS( "MBTiles Overlay",
            "http://localhost:8080/tileserver/DHK_17/", {layers: 'basic'} );
    map.setCenter(new OpenLayers.LonLat(23.81, 90.40),17);

I am struggling from last night. Please help me.

share|improve this question
and what is your problem exactly? – JaakL Dec 1 '12 at 20:56
The script is not showing maps of mbtiles. Its showing blank/pink tiles only. I used only 16,17 &18 zoom data of Bangladesh – Devils Dream Dec 2 '12 at 7:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.