How to add openstreetmap to this script without harming map markers.
Can anyone help.

<SCRIPT src="http://maps.google.com/maps?file=api&v=2&key=%-
gateways.googlemaps.apikey-%" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">

$(document).ready(function(){

    var twmap=initmap('map');
    var centerlat=0;
    var centerlng=0;

    <%FOREACH product IN results>
    createmapmarker(twmap,%-product.map.lat-%,%-product.map.lng-
%,'','%-product.repuri-%');
    centerlat = ((centerlat * %-product_index-%) + %-product.map.lat-
%) / (%-product_index-% + 1);
    centerlng = ((centerlng * %-product_index-%) + %-product.map.lng-
%) / (%-product_index-% + 1);
    </%FOREACH>

    centermap(twmap,centerlat,centerlng,5);
    });

</SCRIPT>

<div id="map" style="width: 250; height: 300px; margin:0px auto;"></
div>

<%FOREACH product IN results>
    <div id="mapinfo-%-product.repuri-%" style="display:none;">
        <div style="width:200px;">
        <A HREF="<%SNIPPET link closeup,%-product.catalogue-%/>?cdo=%-
product.repuri-%&dtd=%-global.dtcheckin--format=h_http-%&dta=%-
global.dtcheckout--format=h_http-%"><IMG class="display float-left"
width="67" height="50" SRC="%-product.photos.thumbnail-%"></A>
        <img style="display:block; margin:0; padding: 0 0 10px 0;"
src="%-system.docbaseurl-%images/elements/stars<%SNIPPET ratingstars %-
product.ratingdes-% />.gif" alt=""/>
        <h3 class="flag" style="display:inline;clear:right;">%-
product.locationdes-%</h3>
        <H2><A HREF="<%SNIPPET link closeup,%-product.catalogue-%/>?
cdo=%-product.repuri-%&dtd=%-global.dtcheckin--format=h_http-%&dta=%-
global.dtcheckout--format=h_http-%">%-product.name--format=s_pb35-%</
A></H2>
        <DIV class="clear"> </DIV>
        </div>
    </div>
</%FOREACH>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to