نقشه گوگل یکی از امکانات پرطرفدار گوگل می باشد که کاربران بسیار زیادی از آن استفاده می کنند . وبمستران نیز دور از این کاربران نیستند و از آن به بهترین نحو استفاده می کنند . برخی از وبمستران اقدام به نمایش نقشه های گوگل در سایت خود می باشند که توسط آن محل کار ، همایش و … را به طور دقیق به کاربران خود نمایش دهند . برای نمایش نقشه های گوگل در سایت های وردپرس افزونه وجود دارد اما ما استفاده از کد را به شما پیشنهاد می دهیم ؛ زیرا افزونه ها فشار بسیار زیادی به سرور سایت شما خواهند آورد و منابع زیادی مصرف می کنند . در این مطلب قصد داریم آموزش استفاده از نقشه گوگل در سایت وردپرس و غیر وردپرس خود ( حتی سایت های استاتیک ! ) را ارائه کنیم . در ادامه با ما و آموزش نمایش نقشه گوگل با استفاده از کد همراه باشید .
آموزش استفاده از نقشه گوگل در سایت
برای اینکار ابتدا وارد نام کاربری خود در گوگل مپ ( Google map ) شوید . در صورتی که در سرویس دهنده های گوگل ثبت نام نکرده اید ، می توانید ثبت نام کنید . سپس مکان مورد نظر خود را پیدا کرده و بر روی آن کلیک راست نمایید تا گزینه های آن ظاهر شود . با استفاده از گزینه ی What’s here می توانید مختصات مکان مورد نظر خود را بیابید که با رنگ آبی و به صورت عددی نمایش داده می شود . مختصات بدست آمده را در بخشی ذخیره کنید و در ادامه به کاربرد آن خواهیم پرداخت .
با استفاده از کد زیر در هر بخشی از سایت تود می توانید نقشه گوگل را نمایش دهید .
!DOCTYPE HTML html lang="en" head meta charset="UTF-8" / titleGoogle Maps/title style type="text/css" #map-canvas{ width: 700px; height: 500px; margin: 0 auto; } /style script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.expsensor=false"/script script type="text/javascript" function initialize() { var myLatlng = new google.maps.LatLng(29.935711, 52.887702); var mapOptions = { zoom: 15, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var contentString = 'div style="direction: rtl; text-align: right;font-family: Tahoma;"' + 'h4Marvdasht , Takhte Jamshid/h4' + 'h5Takhte Jamshid/h5' + '/div'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'Takhte Jamshid' }); infowindow.open(map, marker); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map, marker); }); } /script /head body onload="initialize()" div id="map-canvas"/div /body /html
اکنون مختصاتی که در مرحله قبل بدست آوردید را جایگزین مختصات ۲۹.۹۳۵۷۱۱, ۵۲.۸۸۷۷۰۲ موجود در کد های بالا نمایید . برای یافتن مختصات در بین کد ها می توانید با استفاده از کلید های ctrl+F یا F3 استفاده کنید . همچنین به جای کلمه ی Doctor wordpress نام یا آدرس محل مورد نظر خود را وارد نمایید . اکنون نقشه ی گوگل در هر بخشی که این کد را قرار داده اید ، قابل مشاهده است .
<!–
–>
!
–>
لطفا چند ثانیه زمان بگذارید !
اگر این مطلب مورد استفاده شما بود لطفا امتیاز خودتان را از ۵ به ما بدید . با تشکر فراوان
Loading…
Dangers Of Amoxicillin Venta Cialis Tadalafil online cialis Do They Sell Trazadone Over The Counter
Priligy Mode D Emploi El Priligy Kamagra Suppliers cialis Cialis Lilly Preisvergleich Is Keflex A Beta
Comment Durer Plus Longtemps Chambres Levitra O Viagra O Cialis donde comprar cialis madrid Keflex And Dizziness
Amoxicillin Age Weight Restrictions Acheter Kamagra Bon Marche generic 5mg cialis best price Keflex To Treat Spondylitis 2050 No Prescription Clavamox Buy Amoxicillin Amazon 252
Viagra 30 Anos Buy Wellbutrin Xr Without Rx Levitra Tabletten Teilen cheapest cialis 20mg Azithromycin 500mg Next Day Delivery Cialis Acheter En Belgique
Viagara 40 Pills For 99$ viagra Doryx 100mg C.O.D. Precio De Kamagra Con Receta
It is the best time to make some plans for the future and it’s time
to be happy. I have read this post and if I could I desire to suggest you few interesting things or advice.
Maybe you can write next articles referring to this article.
I desire to read more things about it!
There’s certainly a lot to know about this topic. I like all the points you have made.
Heya i am for the primary time here. I found this board and I in finding It truly helpful & it helped
me out much. I hope to give one thing again and
help others such as you helped me.
Whoa! This blog looks exactly like my old one!
It’s on a entirely different topic but it has pretty much the same page layout and design. Outstanding
choice of colors!
Hi there, i read your blog occasionally and i own a similar one and i was just
curious if you get a lot of spam responses? If so how do you reduce it, any plugin or anything you can recommend?
I get so much lately it’s driving me mad so any assistance is very much appreciated.
Its like you read my thoughts! You appear to grasp so
much about this, such as you wrote the book in it
or something. I think that you just could do with some % to power the message home a bit,
but other than that, that is magnificent blog.
A great read. I’ll definitely be back.
I wil right away take hold of yoiur rss as I can’t too find youur emqil subscription lnk
orr e-newsletter service. Do you’ve any? Kindly pedmit mme understand so that I mayy subscribe.
Thanks.
It is the best time to make some plans for the future
and it is time to be happy. I’ve read this post and if I could I desire to suggest you some interesting things or
tips. Perhaps you can write next articles referring to this article.
I want to read more things about it!
It is perfect time to make some plans for the future and it is time to be happy.
I’ve read this post and if I could I want to suggest you some interesting things or tips.
Maybe you can write next articles referring to this article.
I desire to read more things about it!
It’s perfect time to make some plans for the future and it is time to
be happy. I’ve read this post and if I could I desire to suggest you some interesting things or advice.
Maybe you could write next articles referring to this article.
I wish to read more things about it!
There’s certainly a lot to find out about this topic.
I really like all the points you’ve made.
Way cool! Some extremely valid points! I appreciate you penning this article and also the rest
of the website is also really good.
Awesome! Its actually amazing article, I have got
much clear idea on the topic of from this post.
Hey would you mind sharing which blog platform you’re using?
I’m going to start my own blog soon but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your layout seems different then most blogs and I’m
looking for something unique. P.S My apologies for getting off-topic but I had to ask!
Hello there, just became aware of your blog through Google, and found that it’s really informative.
I’m gonna watch out for brussels. I’ll be
grateful if you continue this in future. Numerous people will be benefited from your writing.
Cheers!
I visited many web sites but the audio feature for audio
songs existing at this web site is truly fabulous.
It’s tthe bst time too makoe somne plaans for thhe futuure and it’s timee to bee happy.
I’ve read this postt annd iff I could I desire tto suggest you some intteresting things oor tips.
Maybbe yyou coupd rite next articles referring tto
this article. I dsire tto read evenn more things
about it!
I have been surfing online more than three hours today,
yet I never found any interesting article like yours.
It is pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did,
the net will be much more useful than ever before.
I’ve been browsing online more than three hours these days, but I never discovered any fascinating article like yours.
It is beautiful value enough for me. Personally, if all
webmasters and bloggers made excellent content as you did, the web can be much more helpful than ever before.
Woah! I’m really enjoying the template/theme of
this site. It’s simple, yet effective. A lot of times it’s hard to get that
“perfect balance” between superb usability and appearance.
I must say you have done a great job with this. Also, the
blog loads extremely fast for me on Firefox.
Superb Blog!
Woah! I’m really loving the template/theme of this website.
It’s simple, yet effective. A lot of times it’s hard to
get that “perfect balance” between user friendliness and visual appeal.
I must say you have done a very good job with this. Additionally,
the blog loads extremely quick for me on Safari.
Excellent Blog!
That clean windows in fairfax means you can get you company
up and tested. Oh my gosh, let me just say you’ve added an element, you, instead of saying too heavy or not, I think it’s a graduate business degree.
I’ll right away grasp your rss feed as I can not find your e-mail subscription hyperlink or
newsletter service. Do you have any? Kindly let me recognise so that I may subscribe.
Thanks.
I’ll immediately grasp your rss feed as I can not in finding your
email subscription hyperlink or e-newsletter service. Do you have any?
Kindly let me recognise so that I could subscribe. Thanks.
I’ll immediately clutch your rss as I can’t in finding your email subscription link or e-newsletter service.
Do you’ve any? Please let me realize so that I may just subscribe.
Thanks.
I will right away grab your rss feed as I can not find your e-mail subscription hyperlink or e-newsletter service.
Do you have any? Kindly let me realize so that I may just subscribe.
Thanks.