Could I get a quote, to customize Geocraft to center on User's Location? Test the system to see if Geolocation is available, and if so, then center the map on that. If not available, then just center by current method or ask user for location?
Hello, Greetings from InkThemes! Sorry, we are little bit confused with your issue.. Could you please explain a bit more so that we can assist you accordingly? Looking forward to your reply. Thanks & Regards! Priyanka InkThemes.com
Currently, the center of the map for Geocraft is based on some algorithm, I think based on the center of all listings. I think it would be better, if the map is centered at the User's location. The Google Maps API has a command to determine the User's location, if the device (computer, tablet, phone, etc.) has that capability. The Google API command is: navigator.geolocation.getCurrentPosition(success[, error[, options]]) I would like to get a quote from you, for customizing Geocraft to use this Google command to determine the User's position, and center the map using the User's current position. You will also need to implement error handling, if the User's device does not have this ability. In that situation, default to your current algorithm for assigning the Center of the map. I think you should consider changing Geocraft to center the map this way. Because it is much more useful for Users to find what they are looking for, starting first by showing the listings which are closest to them. Thanks, Don
Trouble is that positioning something that way may not suit all of us. What if the person is out of the area looking for something in the area and it finds what are the closest listings which may not be representative of whats available. Maybe its possible to have a checkbox to implement this but I can see it getting messy and what about the premium listings, how would you determine those that would appear in those circumstances? Maybe your idea has some merit, what about a poll on this forum to see what others think about it?
Actually, I started with a request for a custom development quote just for me. But to address your concern: The current algorithm is not thoughtful of any user's particular needs, it's just an arbitrary center based on some tally and "middle" location of all listings. So the current center position scheme may already result in your concern: "... if the person is out of the area looking for something in the area and it finds what are the closest listings which may not be representative of whats available." So perhaps basing a center on a User's location, will at least meet some of the Users' needs. If they want another area, they can still always move the map to where they are interested.
How about an option in the Geocraft setup? One checkbox for Centering the map location on the User's location. If not checked, use the current algorithm. If checked, then try to use the Google API command: navigator.geolocation.getCurrentPosition(success[, error[, options]]) and try to center the map on the the User's location. If the User's system does not support the command, then revert back to current algorithm. Thanks, Don
I really appreciate your suggestion and I have forwarded the same to the concerned department, If possible, we will try our best to implement such feature in the upcoming version. Warm Regards! Naveen Kolhe InkThemes.com
In my humble opinion, it would be of benefit that the map expands and centers in an specific geographical point, like a city, a region so if we are selling ads, to a region, lets say Washington, DC which is my area, that would be the center point and all the business. maybe inserting a (custom CSC code).
Hi! Fawws, For your information the latest version of the theme comes with a map search feature and you can set your location in default to display in center. Regarding the zooming level, Just visit your Dashboard->Appearance->Theme Editor and open map_search.php file and do the editing as shown in attached screenshot. Hope you find the above solution helpful, Warm Regards! Naveen Kolhe InkThemes.com