Problem/Motivation

I'm trying to use multiple addresses for a map, I'm building it like this:

 $str='<div class="GMapEZ" style="width: 300px; height: 300px;">';
 foreach($lugares as $lugar){
 if (strlen($lugar)>1)
 {
  $lugar=preg_replace('/\s/', '%20', $lugar);
  $str.='<a href="http://maps.google.com/maps?q='.$lugar.',Santiago"></a>';
   }
  }
 $str.='</div>';

when it's only one address it works fine, but 2 or more and I get the GmapEZ logo, BTW it doesn't matter what address it is , I tried them in the google maps page one by one and they work fine, I'm also putting a png of the result I get in the attachment.

Hope someone can help me.

Regards

CommentFileSizeAuthor
gmapez issue.PNG11.85 KBmaynardo

Comments

berenddeboer’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please put your output here instead of your code? So your entire gmapez div please.

maynardo’s picture

Nope, sorry I can't anymore, Got tired of waiting and changed the flow of the app so my code would need only 2 maps instead seven and everything went well.

Anyways now I'm trying to append a couple of maps into an email, so far I haven't had any luck, Any advice on how would you append one to the body?

Best Regards

berenddeboer’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Turn them into images, and send those.