Home › Forums › JavaScript › google map is zoomed out
- This topic is empty.
-
AuthorPosts
-
August 16, 2014 at 9:37 am #179277LegieParticipant
Hi,
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/FwKBo
August 16, 2014 at 11:28 am #179292LegieParticipantsorry i just forgot to add it!
August 16, 2014 at 4:10 pm #179303LegieParticipantIts 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 #179370LegieParticipantI 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!
code: http://pastebin.com/8XQDdnAm
website: http://mojemisto.wz.cz/ (doesnt work)August 17, 2014 at 4:28 pm #179396LegieParticipantwhen 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 #179405nixnerdParticipantCan 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 #179423LegieParticipantIt looks nice and clear. Going to check it. Thanks for tip.
August 18, 2014 at 11:03 am #179510nixnerdParticipantNP. 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 #179821LegieParticipantmy 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!
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.