Here I'm using an iFrame and passing one URL with dynamic latitude/longitude:

<iframe width="270" height="250" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.in/maps?f=d&source=s_d&t=k&layer=t&hl=en&mra=ls&ie=UTF8&geocode=&hq=&sll=<?php echo $latitude;?>,<?php $longitude;?>&spn=0.0183632,0.0215679&z=15&output=embed"></iframe>

Can I set a marker on the particular location I pass in as parameters?

2 Answers 2


Easily! Just put your arguments in:


Replace http://maps.google.co.in with http://ditu.google.cn

Don't know why, but it works for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.