PDA

View Full Version : Dynamic multiple addresses


secure377208
05-28-2009, 12:03 AM
Could anyone please advise how I get the option for multiple addresses to be available, the support files tells me what this is for but I cannot find anything which advises what steps to take or facilities which need to be in place in order to be able to select and use it.

I want to be able to produce a map showing accommodation locations with the information taken from a mysql database, I assumed that when selecting multiple loactions option that I would then be able to stipulate the database details but as I cannot even select the multiple locations I am obviously missing an important step in the procedure.

Any help would be appreciated.

Thanks in advance

Ray Borduin
05-28-2009, 08:54 AM
Please make sure you are adding the map to a .php page in a dreamweaver site with a recordset defined. You can't get information from a recordset if the page doesn't have a recordset on it.

secure377208
05-28-2009, 11:17 AM
Hi Ray,

I think we are getting there now, my next stumbling block is that I would like to include in the Info pane a link to the establishments advertisement on the website, the coding in the info panel is;

<strong><?php echo $row_Recordset1['establishment_name']; ?></strong>
<a href="<?php echo $row_Recordset1['_link']; ?>"<?php echo $row_Recordset1['_link']; ?></a>

But I dont get anything showing after establishment name, could you please advise if a) a link can be created at this point b)I have the correct syntax.

If it can be done and the syntax is correct I at least know its worth spending time trying to get it working.

I am also finding that it is only displaying 13 of over 40 accommodations in this category any tips on how to find out why?

Ray Borduin
05-28-2009, 11:40 AM
Do you have a URL where I can view it? After you refresh the page does it show more? It may show 13 the first time and 26 the next etc. untill all locations are cached.

secure377208
05-28-2009, 11:48 AM
Hi Ray,
at present I am testing it at http://79.170.44.106/bridlington.net/serviced_map.php

you may also notice that another anomoly we are experiencing is that although all the locations are within a few square miles the map sometimes zooms out to include Canada, Greenland and Nigeria although there are no locations pinpointed at any other location other than the UK so I doubt that it is a mistyped postcode record, I did try setting the zoom level to 14 thinking it might cure it but it doesn't.

We are also finding that some addresses are showing up at wrong locations for no apparent reason, I will get someone to check the postcodes in the database tomorrow to rule out any mistypes being the cause, but so far on the results displayed we would not be able to use this facility due to it not displaying all locations and locations sometimes incorrectly mapped, it may be a google maps issue but you can guarantee that clients would be blaming us!!

Ray Borduin
05-28-2009, 01:48 PM
You could probably use the longitude and lattitude if the addresses themselves aren't working properly.

Please post a support incident. I think we should have someone look into this with you.