Hmm, does coordinates work like that? Thanks, let me give it a try. If that works, I was just thinking to complicated.
Have a look at this plugin https://github.com/hypeJunction/hypeGeo
I have used functions from it for building similar functionality which you ask.
Juho's suggestion won't work with geocoordinates. The earth is a sphere and coordinates span north and east.
I am quite sure I have written a query for getting entities within a bounding box before, but I can't find it now.
These might help, you can use a radial search from map center. Take the distance from center to any of the corners and you will get your bounding box plus some adjacent items.
https://github.com/hypeJunction/hypeGeo/blob/master/lib/functions.php
https://github.com/hypeJunction/hypeMaps/blob/master/classes/hypeJunction/Maps/ElggMapQuery.php
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.