You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to use some custom javascript like this after a
map has loaded:
jQuery.ajax( {
url: properties.ajaxurl,
dataType: 'jsonp',
data: {
near_lat: initialLocation.lat,
near_lng: initialLocation.lng,
radius_km: 100
},
success: function( data ) {
GeoMashup.addObjects( data );
}
} );
This may not work yet (see the group thread below), but should be possible
without too much additional development.
https://groups.google.com/forum/?hl=en&fromgroups#!topic/wordpress-geo-mashup-pl
ugin/1vx6PQRIjDU
Original issue reported on code.google.com by dylankk...@gmail.com on 27 Apr 2012 at 9:25
The text was updated successfully, but these errors were encountered:
A few corrections are needed to the above snippet: the URL is wrong and the
reference passed to addObjects is wrong (props Adam Hayek on the list for
that). Corrected snippet:
jQuery.ajax( {
url: properties.geo_query_url,
data:{
near_lat: initialLocation.lat,
near_lng: initialLocation.lng,
radius_km: 10,
},
success: function(data) {
GeoMashup.addObjects( data.objects );
}
});
Original comment by dylankk...@gmail.com on 14 May 2012 at 4:13
Original issue reported on code.google.com by
dylankk...@gmail.com
on 27 Apr 2012 at 9:25The text was updated successfully, but these errors were encountered: