Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_startup_errors', 1);
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- include("../lib/mapscript.php");
- $image_url = "";
- $map = new mapObj("./test_points.map");
- if (isset($_REQUEST['type'])) {
- if ($_REQUEST['type'] == "kml") {
- $map->selectOutputFormat('kml');
- $img = $map->draw();
- $map->drawLabelCache($img);
- $img->save("test_points.kml", $map);
- }
- }
- else {
- $image_url = "./test_points.png";
- $img=$map->draw();
- $img->save($image_url);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement