PDA

View Full Version : Google Maps - Changing Location


Crumpy1
05-31-2016, 05:01 PM
Hi,

I have got a map on a contacts page that needs the location updating. The original developer of the page has integrated this differently from the copy & paste code Google supplies, and I was wondering if anyone can confirm where in the code I need to change the information to update the address?

Page is here http://gator4253.hostgator.com/~crumpy360/contact.html

If anyone can spot where this is ... "Hidden"... that would be great.

Thanks

edbr
06-01-2016, 02:40 AM
there ia a links to js config you will find it there

at present it reads

/* ---------------------------------------------------- */
/* Google Map */
/* ---------------------------------------------------- */

objGoogleMap: {
objMapAddress: {
address: "Quito, Ecuador",
zoom: 14,
markers:[
{
address: "Guayaquil, Ecuador",
html: "My Hometown",
popup: true
}
]
},
objMapExtended: {
controls: false,
scrollwheel: true,
markers: [
{
latitude: 47.670553,
longitude: 9.588479,
icon: {
image: "images/map/gmap_pin.png",
iconsize: [44, 54],
iconanchor: [12,46]
}
}
],
icon: {
image: "images/map/gmap_pin.png",
iconsize: [44, 54],
iconanchor: [12, 46]
},
latitude: 47.67169,
longitude: 9.603413,
zoom: 14
}

},

Crumpy1
06-01-2016, 04:40 PM
Thanks, i looked everywhere for that snippet of code. Do i need to change the latitude & longitude fields? Just changing the address appears to have worked?

edbr
06-01-2016, 05:31 PM
if it works , then fine but i would have expected to have changed long lat also