Skip to:
Content
Pages
Categories
Search
Top
Bottom

Embedded Google Maps after upgrading Buddypress. Need help!

  • Profile photo of Kookidooki
    Kookidooki
    Participant

    @kookidooki

    Hi guys,
    I had Google Maps embedded in my website which shows the Location of the user. But now it’s gone after upgrading Buddypress to the latest version (I’m done with the upgrading).

    Is there a confict and how to fix this?
    Thx in advance.
    Below the code:

    <div>
    <h5>Map <?php if ( bp_is_my_profile() ) : ?> <?php endif; ?></h5>
    <script src=”http://maps.google.com/maps?file=api&v=3.x&key=API-Key” type=”text/javascript”></script>
    <script type=”text/javascript”>

    var map = null;
    var geocoder = null;

    function initialize() {
    if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById(“map_canvas”));
    map.setCenter(new GLatLng(0, 0), 35);
    geocoder = new GClientGeocoder();
    }
    }

    function showAddress(address) {
    if (geocoder) {
    geocoder.getLatLng(
    address,
    function(point) {
    if (point) {
    map.setCenter(point, 11);
    var marker = new GMarker(point);
    map.addOverlay(marker);
    map.addControl(new GSmallMapControl());
    }
    }
    );
    }
    }
    jQuery(document).ready( function() { initialize(); showAddress(‘<?php echo $location ?>’); } );

    </script>

    <div id=”map_canvas” style=”width: 100%; height: 350px; border: 1px solid #eee; overflow: hidden”></div>

    </div>

Viewing 1 replies (of 1 total)
  • Profile photo of Kookidooki
    Kookidooki
    Participant

    @kookidooki

    The same problem occurs with BP User Profile Map.

    Is there someone here who can tell me how to fix this?

Viewing 1 replies (of 1 total)
  • The topic ‘Embedded Google Maps after upgrading Buddypress. Need help!’ is closed to new replies.
Skip to toolbar