Developer forum

Forum » CMS - Standard features » Map search by geolocation

Map search by geolocation

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am trying to configure the map module to search by geolocation. Meaning that I would like to add a zipcode or a city and I would expect the map to show me the closest locations to my search term.

First of all, I have noticed that I get a 404 error for the cluster library that seems to be loaded by the module. The link in question is this: https://cdn.rawgit.com/googlemaps/v3-utility-library/master/markerclustererplus/src/markerclusterer.js. My solution is running 9.9.7.

Coming back to what I am trying to accomplish, I see that the search is looking to some fields that are listed on the template but it does seem to ignore geolocation.

I have generated geolocations to all my locations but it seems to ignore it and it only finds results if the search term is an exact match to something found on the Address. The city, the zipcode or the street.

Is there any way I can adjust the default DW code to consider also the geolocation?

Thank you,


Adrian


Replies

 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Adrian,

Did you manage to find a solution for this one?

Best regards
Kurt

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Kurt,

It's a very old issue. I believe I have found a workaround but it may have been in some javascript code using the google API.

The missing file seems to still be an issue. I think I remember a recent post n this forum on the same (or similar) issue.

I am sorry but I don't have a suggestion handy.

Adrian

 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Adrian,

Yes, I know... just a lucky shot :) Thank you very much.

Best regards
Kurt

 

You must be logged in to post in the forum