- This topic is empty.
August 16, 2014 at 9:37 am #179277
Iam searching everything, but i cant figure out one thing.
I put google map link to website and it works.
Then i write little script that changes 2 divs as you can see on the code.
It looks like here: http://mojemisto.wz.cz/gmaps_prob.png
problem is that when i click on the second link, map is zoomed out like for whole world.
Where can be problem? Where i should find the problem? Before i use my script and puts div`s behaine it, it works.
Thanks for reply!
EDIT: source code where it works as you can see whole map image zommed on the location http://codepen.io/anon/pen/FwKBoAugust 16, 2014 at 11:28 am #179292
sorry i just forgot to add it!August 16, 2014 at 4:10 pm #179303
Its same code what is on the website (i just remove text and some css). I think the problem is that i need to reload div again or something. I can paste whole code if it helps.August 17, 2014 at 10:46 am #179370
I just make simple code, what doesnt work – its same but with no-text and doesnt work for me. Try this one and let me know results please.
I have no idea why map “MAP2” doesnt show…or show but zommed out.. Maybe i need to put differend script source or something?
Thank you!August 17, 2014 at 4:28 pm #179396
when i put single link on the site ( the iframe) it works. So question is, where can be the problem? When i put link to any site it work…but with this code, it doesnt,
nevermind, thanks for your help!August 17, 2014 at 7:57 pm #179405nixnerdParticipant
Can I just jump in here and suggest mapbox? It’s got a great API. Real easy to work with.August 18, 2014 at 1:40 am #179423
It looks nice and clear. Going to check it. Thanks for tip.August 18, 2014 at 11:03 am #179510nixnerdParticipant
NP. Those maps are GORGEOUS. Love the way they look. Will FOR SURE use them for many little webapps.August 19, 2014 at 9:12 am #179821
my boss wants gmaps so i need to figure it out. But anyway, thanks for the info, i will use it in other projects.
Btw problem with my map was that i just paste link from maps.google (there is function that create <iframe>)
i fix it a little, i use working link from 1st map, and change some stuff in URL(adress) and rest I left as it is.
now you can see on http://mojemisto.wz.cz/ that it works, but there is one little think i cant fixed and its that my point is not on the center but on the left top corner. Any ideas?
Thanks for help and tips!