Lamhot / php-google-map-api

Automatically exported from code.google.com/p/php-google-map-api
0 stars 0 forks source link

use custom marker while working with alias directory #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure an apache2 alias directory (i.e. /gmapi /usr/share/gmapi
2. cp demos/simple.php /usr/share/gmapi/simple.php
3. change the marker to: $MAP_OBJECT->addMarkerByAddress("Denver, CO","Marker 
Title", "Marker Description",'','img/mymarker.png');

What is the expected output? What do you see instead?
Instead of using the relative path to mymarker.png, the doc root will be used 
as base path and therefore point to /var/www/img/mymarker.png

Line 1465 in the API - why do you use $_SERVER['DOCUMENT_ROOT']? In order to 
use Alias Directories i needed to remove the $_SERVER['DOCUMENT_ROOT'] 
statement to make it work.

Original issue reported on code.google.com by wuethric...@gmail.com on 28 Aug 2011 at 12:04

GoogleCodeExporter commented 9 years ago

Original comment by b...@mycnl.com on 25 Sep 2011 at 6:08