[Tilecache] Securing map data link

FreemanUz ozodbekulmasov at gmail.com
Thu Jan 28 06:57:21 EST 2010


We must secure the map data. The online maps will be used for GPS tracking
system and Mapnik +Tilecache+Openlayers must give the map tiles only to our
project web-site. It must be protected from downloading or showing in other
web-sites.
Please let me know about securing the data display.


index.php source code..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Mapnik WMS Test</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link rel="stylesheet" href="style.css" type="text/css" />
  <style type="text/css">

    body {margin: 0px;}
    #map {
    width: 1024px;
    height: 768px;

    }
   </style>
    <script
src="http://localhost:8888/OpenLayers/lib/OpenLayers.js"></script>
    <script type="text/javascript">
		var lon = 5;
        var lat = 40;
        var zoom = 5;
        var map, layer;
 
        function init(){
            map = new OpenLayers.Map('map', {
                    controls: [
                        new OpenLayers.Control.Navigation(),
                        new OpenLayers.Control.PanZoomBar(),
                        new
OpenLayers.Control.LayerSwitcher({'ascending':false}),
                        new OpenLayers.Control.Permalink(),
                        new OpenLayers.Control.ScaleLine(),
                        new OpenLayers.Control.Permalink('permalink'),
                        new OpenLayers.Control.MousePosition(),
                        new OpenLayers.Control.OverviewMap(),
                        new OpenLayers.Control.KeyboardDefaults(),
						new OpenLayers.Control.NavToolbar()
                    ],
                    numZoomLevels: 18

                });
				
            layer = new OpenLayers.Layer.WMS( "maxmap",
"http://localhost:8888/tilecache/tilecache.py?", {layers: 'maxmap',
format:'image/png' }
            
			);
			
            map.addLayer(layer);  
        }	
      
    </script>
  </head>
  <body onload="init()">
      <h2 style="position:absolute; z-index:10000; left: 100px;">Mapnik
SimpleCGI as WMS Test</h2>
    <div id="map">
    </div>
    <!--<div style="font-size: small; left:10px; position:absolute; bottom:
30px; z-index:10000;overflow: auto;">
    Sample WMS Request:<br /> <input type="textarea" size= "100%"
id='info'/>
    --></div>
    <div id="debug" style="font-size: large; right:10px; position:absolute;
bottom: 30px; z-index:10000;"></div>
  </body>
</html>

-- 
View this message in context: http://n2.nabble.com/Securing-map-data-link-tp4472813p4472813.html
Sent from the TileCache mailing list archive at Nabble.com.



More information about the Tilecache mailing list