Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

My addMarkerIcon no longer works - CONFUSED

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
eatc7402
Smarty Rookie


Joined: 18 Feb 2008
Posts: 23

PostPosted: Thu May 13, 2010 8:26 pm    Post subject: My addMarkerIcon no longer works - CONFUSED Reply with quote

I have been successfully using GoogleMaps API 2.5 for number of years.

Here is an example on our production server...
http://www.extraalarm.org/stations/station_location_maps/mpls_fire_station_locations_prod.php

It has been operating on this production Unix/APACHE2.0/Php 5.2
machine for years.

The API operated great on my FORMER Windows XP/IIS/PHP4.2
machine also until....

I upgraded my LOCAL machine to a Windows7/Apache/PHP5.2
machine and then it ALL worked except for one important
API function.

I used to on my old XP machine do this..,.

[code]$two_two_icon = "http://localhost/mult_alarm_data/graphics/2-2_alarm.png" ;

// followed later by...

$map1->addMarkerIcon('$two_two_icon,$shadow_icon,17,0,23,10);

Now the addMarkerIcon no longer accepts the icon reference.
And yes I have checked the reference and its DOES point to the correct
location.
'
I am suspicious that I neglected to install something correctly on my
local machine because the SAME EXCACT code operates prefectly
on the production machine, but does not on my local server.

Where have I goofed up?

Help please

eatc7402
Back to top
View user's profile Send private message Send e-mail
eatc7402
Smarty Rookie


Joined: 18 Feb 2008
Posts: 23

PostPosted: Thu May 13, 2010 11:58 pm    Post subject: Reply with quote

To clarify further...

If I paste the url...
http://localhost/mult_alarm_data/graphics/2-2_alarm.png

into my browser address line I get the proper image of the
2-2_alarm.png icon. So this url is PROPERLY converting
http://localhost into the proper file location of..'

c:/eaahmpg/eatc7402/www

But when the http://localhost/mult_alarm_data/graphics/2-2_alarm.png
is passed to the $map1->addMarkerIcon($two_two_icon,$shadow_icon,17,0,23,10);

as the string $two_two_icon

the proper derivation for the localhost address is not accomplished.

This is a NEW instalation of BOTH Apache and PHP5.2

Both the php.ini and the hpptd.conf files NEED adjustment so that I
am pointing to the proper place for my DOCUMENT ROOT.

But WHERE should the correct adjustment be made??

eatc7402
Back to top
View user's profile Send private message Send e-mail
eatc7402
Smarty Rookie


Joined: 18 Feb 2008
Posts: 23

PostPosted: Fri May 14, 2010 6:02 pm    Post subject: Reply with quote

To further give some troubleshooting info....

If I comment out the addmarkericon() line in the code the map
produces fine, except uses the default icons.

If I attempt to use the addmarkericon() the screen attempts to load
the localhost... then a looooong pause is followed by a BLANK
screen.

Re-comment out the offending line and the map will be produced
again.

HELP PLEASE!!!


I need a steer as to what the problem might be.

eatc7402
Back to top
View user's profile Send private message Send e-mail
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7366
Location: Lincoln Nebraska, USA

PostPosted: Fri May 14, 2010 8:28 pm    Post subject: Reply with quote

GoogleMapsAPI has a new home, you might ask there:

http://code.google.com/p/php-google-map-api/
Back to top
View user's profile Send private message Visit poster's website
eatc7402
Smarty Rookie


Joined: 18 Feb 2008
Posts: 23

PostPosted: Fri May 14, 2010 9:38 pm    Post subject: Reply with quote

Ok I have copied ALL my posts related to this problem to the
new Google forum. I hope I can find a resolution to my issue there.

I feel I have neglected to do a proper setup of something.

eatc7402
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP