I got iframe with googlemap containing static location of company headquoter, i used for this google generator, and all that works fine.
I got also to make possible creating routes from any location to that destinantion which is headquoter, so i picked random location, again generated iframe for this map. Everything worked fine when i hardcoded iframe with planned route, even when i changed start point name, route changes as well.
In the end, task i got, should be solved using one iframe, first it shows only headquoter and if user inputs location name then it shows route. Problem starts when i try to change iframe src using javascript, though i don't think that JS is problem here.
Unwanted behavuiur is when instead of map with route i get whole google maps page, with planning route from a to b, loaded into iframe. Where a is blank and b is filled with headquoter location though that the same src for iframe work fine when it is hardcoded. What's more interesting when i switch back to map with one location everything is as it should be.
Is there anything i could do to load map with route properly? I want to avoid using Google api
Thanks in advance
MTH