Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: locations/map_on_earth.php

locations/map_on_earth.php - Locate geographical coordinates on earth

This script computes an image with a dot on the earth map.

If cache has been activated, this script handle ETag. Also, Cache-Control enables caching for some time, even through HTTPS.

Example of code to mix images - to be used instead of existing code?
//map2.php
Safe::header("Content-type: image/png");
$image ImageCreateFromPNG("island.png");
$icon ImageCreateFromPNG("pin.png");
$trans ImageColorAt($icon,0,0);
ImageColorTransparent($icon,$trans);
$width ImageSX($icon);
$height ImageSY($icon);
ImageCopyResized($image,$icon,174,200,0,
 
0,$width,$height,$width,$height);
ImagePNG($image);
ImageDestroy($image);


This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Tools
Browse the source of this script
Server software