DMXzone Google Maps Support Product Page

Answered

How do I display multiple locations from a database at the same time?

Asked 06 May 2014 13:08:02
1
has this question
06 May 2014 13:08:02 Andre Bender posted:
How do I display multiple locations from a database at the same time?

I do only see samples with filtered recordset but I need to show all locations of a database table.

Replies

Replied 06 May 2014 14:38:19
06 May 2014 14:38:19 Teodor Kuduschiev replied:
Hi Andre,
DMXzone Google maps dynamic data works only with the standard Dreamweaver Recordsets, it is not yet compatible with the HTML5 Data Bindings.
Replied 06 May 2014 17:19:57
06 May 2014 17:19:57 Andre Bender replied:
He Teodor.

I've added a normal recordset to the address field but only the first location is shown. How do I show all of the locations in the table?

In one of the tutorials you're adding {{}} code to the GoogleMap extension isn't that HTML5 Data Bindings stuff?
Replied 06 May 2014 17:22:46
06 May 2014 17:22:46 Teodor Kuduschiev replied:
In one of the tutorials we are showing the only possible option to use the google maps with the html5 data bindings.
The dynamic locations should be loaded from a standard recordset. Please provide a link to your page.
Replied 06 May 2014 18:10:25
06 May 2014 18:10:25 Andre Bender replied:
I'll send you the link @

I call the map like this:


<script type="text/javascript">
  // <![CDATA[
 jQuery(document).ready(
   function()
     {
       jQuery("#map3").dmxGoogleMaps(
         {"zoom": 2, "markers": [{"address": "<?php echo $row_rsContactsAll['ContactAddress']; ?>"}], "maptype": "hybrid"}
       );
     }
 );
  // ]]>
</script>

Reply to this topic