Ignore:
Timestamp:
Dec 6, 2011, 5:42:24 AM (12 years ago)
Author:
rvelices
Message:

rv_gmaps towards full maps api v3 migration (still to test)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/map_data.php

    r7388 r12698  
    6363function jsgm_position( $position )
    6464{
    65   return 'new GLatLng(' . $position['lat'] . ',' . $position['lon'] . ')';
     65  return 'new google.maps.LatLng(' . $position['lat'] . ',' . $position['lon'] . ')';
    6666}
    6767
    6868function jsgm_bounds( $bounds )
    6969{
    70   return 'new GLatLngBounds(' . jsgm_position(bounds_sw($bounds)) . ',' . jsgm_position(bounds_ne($bounds)) . ')';
     70  return 'new google.maps.LatLngBounds(' . jsgm_position(bounds_sw($bounds)) . ',' . jsgm_position(bounds_ne($bounds)) . ')';
    7171}
    7272
Note: See TracChangeset for help on using the changeset viewer.