PHP Classes

mapbuilder markers

Recommend this page to a friend!

      Map Builder  >  All threads  >  mapbuilder markers  >  (Un) Subscribe thread alerts  
Subject:mapbuilder markers
Summary:can't create markers
Messages:3
Author:Richard Lytle
Date:2017-05-03 14:04:19
 

 


  1. mapbuilder markers   Reply   Report abuse  
Picture of Richard Lytle Richard Lytle - 2017-05-03 14:04:19
I am trying to load markers from a mysql db using mysqli functions. I use the following code:

while ($row = mysqli_fetch_assoc($schoolResult)){
$map->addMarker($row['latitude'], $row['longitude'], array(
'title' => $row['schoolName']
));
}

If I attempt to create the markers the map does not display. If I don't create the markers the map does display. Do you know why this is happening?

Thanks.

  2. Re: mapbuilder markers   Reply   Report abuse  
Picture of Vagharshak Tozalakyan Vagharshak Tozalakyan - 2017-05-04 09:29:55 - In reply to message 1 from Richard Lytle
Hello, I need to see your full code to give you an advice.

  3. Re: mapbuilder markers   Reply   Report abuse  
Picture of Richard Lytle Richard Lytle - 2017-05-04 13:27:59 - In reply to message 2 from Vagharshak Tozalakyan
I think I have it figured out. It looks like a memory issue - too many markers were being created - I am talking to our admin about it. Thanks. Very nice class by the way!