Forum Replies Created
-
AuthorPosts
-
It’s all in the template he says.. Thank you! 🙂
Because I am doing something else which you probably already take care of and I haven’t read about yet. I store the last point in a browser cookie, and restore the map to that point when the person loads the page again.
How can I generate a mashup map from php?
Ok, changing the center is easy enough:
mapp0.center.lat = xxxx; mapp0.center.lng = xxxx; mapp0.recenter();Now to play with mashups some more…
Ahhh, ok, after reading docs some more, perhaps I can generate the map because the fields for a post have been populated.. Will give that a go.
The trouble is, these are not regular posts, they are from a directory plugin, and while they show up as an option for mappress, it’s not something the person creating the listing gets to see as the directory listing form etc is handled by a plugin. Even the plugin doesn’t get map coordinates, I’ve added that in, and it’s automatic geocoding.
So basically, a map isn’t turned on for the listing. Will a mashup still show the markers for posts which don’t have a map added?
So if the plugin won’t work under these conditions, my next question is: How do I recenter the map from javascript when given lat/lng ?
Ok, so the next question: Is there way to do this in bulk?
Well this worked:
var newPoi = new mapp.Poi({address: 'Address',body: 'Click Here',iconid: 'green-dot',point: {lat:xx.xxxxx,lng:xxx.xxxxx},title: 'Test',viewport: null}); mapp0.insertPoi(newPoi);Hi Chris,
Ok, so now we know there are issues with Algolia’s search, and in the interim while they sort it out after I start asking questions (if they chose to), is there not a chance you could include alternate geocoding sites? Such as mapbox, which when I’ve tested, does indeed give the correct results. It would definitely be appreciated. Thank you.
Hi Chris,
For some searches it works, but in Australia, “Caboolture” is not a city. The problem that I see is that Algolia is adding a city when it doesn’t need to. A suburb name can on exist once in an Australian State or Territory. Another example search:
“Station St, Petrie, Queensland”
Whenever I try and search that, it drops me at Station Street, Caboolture, Queensland. If you search for the same in Google, you will find there is a Station Street in Petrie.. I fear that these kinds of problems may well occur a lot in Australian searchs using Algolia.
As for using Google to do the searches, it’s cost prohibitive. I paid for mappress because it allows me to use leaflet maps. But the corresponding search isn’t working. However when I’ve used geonames, and mapbox search facilities, they give the correct results…. What is Algolia doing differently?
Thanks for responding Chris, it is greatly appreciated!
Regards,
Cameron -
AuthorPosts
