ah i wondered if that was a problem, but i thought that it would just output a standard marker without it. If it works with it you can just hardcode it into the xml output type=‘hotel’ or something. Then in the future if you want to output different markers you can use the type variable to change them type=‘restuarant’
I changed it to hotel so it makes more sense to what you are doing. You’ll have to change the custom icon name as well if you do that. Prob don’t need to utf8 encode the above but won’t be an issue.
One more thing, its lucky that as an example I have picked Barcelona as it shows clearly on the map anyway, but as I have now also added name as a field, I thought the name may appear next to the marker, because some of the other regions wont have the name already on the map if you know what I mean.
tells it to open an info window when you click the marker. It should load the ‘html’ from the variable which is set further up the code
var html = '<b>' + address + '</b> <br/>';
You can change the ‘click’ to ‘hover’ (i think - been a while since i tried it) so the user just hovers over and a window opens (can get messy though with lots of markers). And the html can be added to so you can add whatever you like an image or a title etc. If you want to get fancy you could expand your database to pick up the hotels lat/lng and the image of the hotel and output that on the map. One step further and you could have the results as a big map instead of the list view… something for the future perhaps.
Ye lucky you asked, because I can see the marker and so I asked a colleague and he cant see it on his. So there something still wrong, and why I wondered too is because I just added lat and lng to Bilbao and its not coming up
Thank you very much Noppy. you have been brilliant, and the way you came back on the Tuesday was fantastic, this is why I only use this forum, the help on here is outstanding, and will try and help myself a bit more where I can.
no worries. Glad i could help. Most of the time i am the one asking others for help so it’s good i could help someone.
I’m certainly no expert on google maps but i’ve done a few bit. If you want to take a look at these pages i’ve done you can get an idea of a few possiblities for expanding your map if you need to
Im trying to work out why my bubbles aren’t bigger, yours are working well.
Those markers of mine are way of mark, so will have to find a way of knowing what the scale of the map is as im collecting them to then have them out put correctly in my map.