Results 1 to 8 of 8

Thread: Google Maps - Class 3 Marker Lgana

  1. #1
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

    Lightbulb Google Maps - Class 3 Marker Lgana

    Assalam o aliekum dosto kesay hain aap sab.. ye mera Google Maps ka teessra tutorial hy agar aapny pehla tutorial nahi dekha to please aap pehly usay check karein kyu k us may main sari basics btai hain ab may dubara unko explain nahi karu ga taa k hu srif usi bat pe focus kar sakein jo new hy..

    Dosto google map google walon ki bnai hui ek API hy jo humy humari website k pages may google maps ko use karny deti hai, jesay apny dekha hoga k bht say businesses jesay k food resturaunts, banks ki websites may google map lga k btaya geya hota hy k resturaunt kahn hy to humari website k page may wo google map hum esi API ko use kar k lgaty hain.

    es lecture may hum apni btai hui destination per Marker lganay k bray may seekhein gay.

    To dosto marker lganay k lye hum Initiaze function k bahr ek new variable may sirf apna center point store kar lety hain kyu k humara marker es case may humary center point per he hoga or ziada tar cases may aap yehi karty hain yani k humari btai hui destination center ho jati hy or us per marker bhi aa raha hota hy

    var myCenter=new google.maps.LatLng(31.557885,74.359675);

    phr hum map ka initialize function likhty hain, or us may map ka center waghera set kar k baad, usky ander marker set karny k lye ye code likhty hain

    var marker=new google.maps.Marker({
    position:myCenter,
    });


    es say humara marker to set ho gya mgar wo map per lga nahi... map per lganay k lye ye code likha jata hy

    marker.setMap(map);

    that's it.

    ye lijiye sara code:

    <!DOCTYPE html>
    <html>
    <head>
    <title>google maps</title>
    <script src="http://maps.googleapis.com/maps/api/js"></script>
    <script>
    var myCenter=new google.maps.LatLng(31.557885,74.359675);

    function initialize()
    {
    var mapProp = {
    center:myCenter,
    zoom:15,
    mapTypeId:google.maps.MapTypeId.ROADMAP
    };

    var map=new google.maps.Map(document.getElementById("googleMap "),mapProp);

    var marker=new google.maps.Marker({
    position:myCenter,
    });

    marker.setMap(map);
    }

    google.maps.event.addDomListener(window, 'load', initialize);
    </script>
    </head>

    <body>
    <div id="googleMap" style="height:500px;width:600px;margin:0 auto;"></div>

    </body>
    </html>



    dosto ab humara marker bhi set ho gya hy... or adhay say ziada websites may etna he kam hua wa hota hy es k elava kuch log marker k upar ek indicator k tor per ek dialog box bhi lgaty hain jispy likha hota hy "we are here" ya koi bhi line jo aap likhna chahein... jo humara next topic hy...
    Attached Images Attached Images   
    Last edited by ali_num13; 18th March 2016 at 12:21 AM.

  2. #2
    abodanish989 is offline Member
    Last Online
    14th February 2017 @ 05:40 PM
    Join Date
    03 Nov 2014
    Location
    Dera ismail kha
    Age
    36
    Gender
    Male
    Posts
    682
    Threads
    71
    Thanked
    22

    Default

    ماشاء اللہ
    بہت اچہی کوشش ہے
    بہائی
    اللہ آپکو آگے بہی اچہے
    تہریڈ بنانے کی
    توفیق دے‎

  3. #3
    Join Date
    04 Aug 2015
    Location
    Chak 660/1 GB
    Age
    24
    Gender
    Male
    Posts
    1,660
    Threads
    308
    Thanked
    73

    Default

    Quote ali_num13 said: View Post
    Assalam o aliekum dosto kesay hain aap sab.. ye mera Google Maps ka teessra tutorial hy agar aapny pehla tutorial nahi dekha to please aap pehly usay check karein kyu k us may main sari basics btai hain ab may dubara unko explain nahi karu ga taa k hu srif usi bat pe focus kar sakein jo new hy..

    es lecture may hum apni btai hui destination per Marker lganay k bray may seekhein gay.

    To dosto marker lganay k lye hum Initiaze function k bahr ek new variable may sirf apna center point store kar lety hain kyu k humara marker es case may humary center point per he hoga or ziada tar cases may aap yehi karty hain yani k humari btai hui destination center ho jati hy or us per marker bhi aa raha hota hy

    var myCenter=new google.maps.LatLng(31.557885,74.359675);

    phr hum map ka initialize function likhty hain, or us may map ka center waghera set kar k baad, usky ander marker set karny k lye ye code likhty hain

    var marker=new google.maps.Marker({
    position:myCenter,
    });


    es say humara marker to set ho gya mgar wo map per lga nahi... map per lganay k lye ye code likha jata hy

    marker.setMap(map);

    that's it.

    ye lijiye sara code:

    <!DOCTYPE html>
    <html>
    <head>
    <title>google maps</title>
    <script src="http://maps.googleapis.com/maps/api/js"></script>
    <script>
    var myCenter=new google.maps.LatLng(31.557885,74.359675);

    function initialize()
    {
    var mapProp = {
    center:myCenter,
    zoom:15,
    mapTypeId:google.maps.MapTypeId.ROADMAP
    };

    var map=new google.maps.Map(document.getElementById("googleMap "),mapProp);

    var marker=new google.maps.Marker({
    position:myCenter,
    });

    marker.setMap(map);
    }

    google.maps.event.addDomListener(window, 'load', initialize);
    </script>
    </head>

    <body>
    <div id="googleMap" style="height:500px;width:600px;margin:0 auto;"></div>

    </body>
    </html>



    dosto ab humara marker bhi set ho gya hy... or adhay say ziada websites may etna he kam hua wa hota hy es k elava kuch log marker k upar ek indicator k tor per ek dialog box bhi lgaty hain jispy likha hota hy "we are here" ya koi bhi line jo aap likhna chahein... jo humara next topic hy...
    بھائی ان تھریڈز کے لنکس دو جو آپ نے پہلے پوسٹ کیے ہیں ..

  4. #4
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

  5. #5
    Talha jamil's Avatar
    Talha jamil is offline Advance Member
    Last Online
    15th September 2020 @ 03:30 PM
    Join Date
    13 Aug 2014
    Location
    Faisalabad
    Age
    27
    Gender
    Male
    Posts
    836
    Threads
    90
    Credits
    2,452
    Thanked
    46

    Default

    Ye kia h?
    Faisalabadian,s

    O Acha g

  6. #6
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

    Default

    ye jo websites may google map laga hota hy uska tutorial hy k kesay lgana or use karna hy

  7. #7
    Dilshad642 is offline Member
    Last Online
    16th June 2016 @ 08:58 AM
    Join Date
    14 Jun 2014
    Location
    mirani
    Age
    32
    Gender
    Male
    Posts
    1,714
    Threads
    147
    Thanked
    102

    Default

    bhai yeh kya hai

    - - - Updated - - -

    bhai yehe kya hai

  8. #8
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

    Default

    ye jo webpages may google maps use kia jata hy maps lgany k lye usky tutorials hain k wo map kesay lgana hy ksi bhi webpage may or kesay use karna hy

Similar Threads

  1. Google Maps - Class 1 Introduction
    By ali_num13 in forum Courses
    Replies: 1
    Last Post: 25th March 2016, 04:04 PM
  2. Replies: 3
    Last Post: 18th March 2016, 04:07 PM
  3. Replies: 26
    Last Post: 15th July 2015, 05:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •