Hi,
I am interested in making spatial search of nodes on a google map.E.g. show me all nodes in London area.
I am interested only inside the boundaries of the area,not on the radius of a specific point.
Is this possible with this module?
thanks

Comments

johnv’s picture

The Location module has a 'proximity' argument.
I have factored that out in a separate argument handler. You can find it here[#1171232-5]
You can use www.example.com/my_page/london_20 .
It shows everything in as 20x20km square, or a circle area.

@pinkonomy, can you try that? ATM it is part of Geolocation field, but I am happy to make a variant for GMap module.
The patch is still homeless.
@podarok, would this fit in GMap module?

user654’s picture

.

johnv’s picture

This patch only searches the locations in your own Drupal Database. Is that what you want? Or do you want to read Google data?
IIRC, GMap already offers a 'filter' (instead of an argument/contextual filter), where you can add the radius.
Your example shows some nifty JS. I'm not into that.

user654’s picture

.

johnv’s picture

You might want to check out Geolocation Proximity. It works with the Geolocation field type, but lacks support for Location/Addressfield/..

johnv’s picture

OTOH, perhaps you can load all nodes, and set the AutoCenter/Center property somehow.

johnv’s picture