Google Maps API: GDirections with no Markers

I’ve been working with the Google Maps API quite a lot over the past couple of weeks, but one thing that has continuously thwarted me, has been how to remove the little Info Window maps from a route that has been loaded using GDirections and finally I have found the answer. When you load a GDirections object with the optional map panel in the constructor it automatically places the route and markers on the map. The work around is to not provide any arguments to the constructor, and instead load retrieve the GPolyline with the getPolyline method and the getPolyline: true option. Then in the “load” event, add it to the map and presto.


var dirs = new GDirections();
GEvent.addListener(dirs, "load", function() {
var polyline = dirs.getPolyline();
map.addOverlay(polyline);
});
dirs.loadFromWaypoints("Directions from here to there", {getPolyline: true});

313 thoughts on “Google Maps API: GDirections with no Markers

  1. You really make it seem really easy with your presentation however I in finding this matter to be really one thing which I believe I’d never understand. It sort of feels too complicated and very large for me. I am taking a look ahead for your next post, I will try to get the grasp of it!
    michael kors chronograph tortoise watch
    michael kors toronto outlet
    online shopping michael kors
    michael kors rose gold watch bracelet
    michael kors sunglasses vivian
    michael kors no brasil
    michael kors dress shirts
    michael kors dylan rose gold
    michael kors free shipping coupon
    michael kors bags outlet store
    michael kors uk prices
    michael kors cheap outlet online
    who carries michael kors handbags
    michael kors uhren gold armbanduhren
    must have michael kors bag
    michaelkorsoutlet
    michael kors leather watches
    michael kors bags clearance
    michael kors watch uk sale
    michael kors cynthia handbag

    michael kors crossbody bag uk

  2. You actually make it appear really easy together with your presentation however I find this topic to be really one thing that I believe I would never understand. It sort of feels too complex and extremely broad for me. I am having a look ahead on your subsequent post, Iˇll attempt to get the cling of it!
    michael kors sandalen sale
    saffiano wallet michael kors
    michael kors dresses online
    onde comprar relogio michael kors
    michael kors hair accessories
    michael kors high heel
    michael kors outlet cheap handbags
    mk5412 michael kors
    discount michael kors watch
    mens michael kors gold watch
    michael kors handbag and wallet
    wholesale michael kors shoes
    dillard michael kors
    buy cheap michael kors handbags online
    michael kors more
    michael kors handbags for less
    michael kors watch for men gold
    michael kors flats sale
    imitation bags michael kors
    michael kors plus dresses

    michael kors mens wallets

  3. You really make it seem so easy together with your presentation however I to find this matter to be actually something which I believe I’d by no means understand. It sort of feels too complex and extremely huge for me. I’m taking a look ahead to your subsequent post, I will try to get the hang of it!
    michael kors black clutch
    michael kors carla
    michael kors online outlet usa
    michael kors uhr mk3265
    michael kors purse cleaning
    michael kors money purse
    michael kors silver and gold chronograph watch
    michael kors luggage bag
    careers at michael kors
    michael kors watches uk men
    michael kors kids boots
    michael kors ladies watch rose gold
    michael kors gold handbags
    mk5263 michael kors watch
    price of a michael kors purse
    michael kors jet set totes
    michael kors fall collection
    michael kors thongs
    michael kors mens dress shirt
    michael kors watch black

    michael kors silver shoes

  4. You actually make it seem really easy together with your presentation but I to find this topic to be really one thing that I think I’d never understand. It seems too complicated and very huge for me. I’m taking a look ahead in your subsequent put up, I will attempt to get the cling of it!
    michael kors black leather bags
    best selling michael kors watch
    michael kors outlet locations canada
    michael kors 2014 outlet
    smycken michael kors
    michael kors mk5039
    michael kors birthday coupon
    free shipping code michael kors
    michael kors bags usa outlet
    klocka michael kors rea
    best mens michael kors watch
    michael michael kors crossbody
    ceramic watch michael kors
    michael kors satchel sale
    inexpensive michael kors purses
    michael kors gold tone watch
    white studded michael kors purse
    michael kors london outlet
    michael kors rose gold watch price
    michael kors black dresses

    womens michael kors bags

  5. You really make it seem so easy along with your presentation but I to find this topic to be really one thing that I feel I would never understand. It seems too complex and extremely large for me. I am taking a look ahead in your next publish, Iˇll try to get the cling of it!
    michael kors dress sale
    michael kors purses crossbody
    michael kors spiked heels
    kors michael kors flats
    michael kors tanger outlet
    michael kors pumps black
    michaelkors.com handbags
    michael kors boots women
    cheap michael kors wristlets
    gold michael kors mens watch
    christ uhren michael kors
    promo codes for michael kors watches
    buy michael kors
    michael kors cheap sale
    watch michael kors
    michael kors discount handbags
    discounted michael kors watches
    michael kors handbag
    michael kors wooden heels
    michael kors ankle boot

    small black michael kors bag

  6. Hello! Would you mind if I share your blog with my myspace group? There’s a lot of folks that I think would really appreciate your content. Please let me know. Thanks

  7. You really make it appear really easy with your presentation but I to find this topic to be really something that I think I might never understand. It seems too complex and extremely huge for me. I am taking a look ahead to your next publish, I will attempt to get the grasp of it!
    michael kors damita platform wedge sandals
    michael kors clearance totes
    michael kors backpack
    michael kors wedding dress
    lexington michael kors
    michael kors official page
    authentic michael kors wallets
    cheap michael kors watches for women
    michael kors heels black
    michael kors blaue uhr
    50 off michael kors
    mens michael kors watches uk
    michael kors purple handbags
    real cheap michael kors handbags
    michael kors prom dresses
    michael kors shoes 2012
    runway rose gold michael kors
    michael kors watches on sale uk
    michael kors apparel outlet
    michael kors rose gold bracelet watch

    mens gold michael kors watches

  8. You actually make it seem really easy along with your presentation however I find this topic to be really one thing that I feel I’d by no means understand. It sort of feels too complex and extremely wide for me. I’m having a look forward in your next post, I will attempt to get the hang of it!
    michael kors black handbag sale
    michael kors rose gold rings
    michael kors large
    michael kors wallets price
    michael kors bags on sale
    michael kors azul marinho
    michael kors replica free shipping
    best price michael kors bags
    kors michael watches
    michael kors white acrylic watch
    michael kors paris store
    michael kors clothing outlet
    michael kor bag
    best price michael kors handbags
    michael kors handbag jet set
    michael kors coupons 2014
    kors by michael kors boots
    michael kors store canada
    michael kors wallet men
    michael kors purses price range

    michael kors footwear for ladies

  9. You really make it appear so easy together with your presentation however I in finding this topic to be actually something that I feel I’d never understand. It sort of feels too complex and extremely large for me. I’m taking a look forward in your next put up, Iˇll try to get the cling of it!
    michael kors ladies brushed silver chronograph watch
    michael kors gold watch
    michael kors ring sale
    michael kors black jet set
    michael kors silver sneakers
    michael kors bag outlet uk
    michael kors shoes on sale sandals
    is michael kors real leather
    gold michael kors shoes
    michael kors t
    michael kors bucket bag
    michael kors a nice
    cheap michael kors handbag
    ladies michael kors watch sale
    michael michael kors grayson large satchel
    michael kors mens sneakers
    michael kors taschen hannover
    michael kors fur vest
    michael kors gloves
    michael kors laarzen 2014

    michael kors eyewear

  10. You really make it appear so easy along with your presentation however I in finding this topic to be really something that I feel I might never understand. It sort of feels too complicated and extremely vast for me. I am taking a look forward in your subsequent put up, Iˇll try to get the grasp of it!
    cheap michael kors coats
    michael watches for women
    michael kors shift dress
    michael kors silver chronograph watch
    michael kors shoes silver
    michael michael kors jet set continental wallet
    cheap michael kors free shipping
    bags michael kors cheap
    michael kors jet set travel brown
    michael kors mk5412
    michael kors sneaker zwart
    michael michael kors jet set small travel satchel
    apply at michael kors
    michael kors heel boots
    michael kors michael for men
    michael kors women watches rose gold
    michael kors fulton moccasin
    michael kors hobo bag black
    best michael kors sale
    michael kors bag blue

    michael kors factory outlet online official

  11. You actually make it seem really easy along with your presentation but I in finding this matter to be actually something which I believe I would by no means understand. It seems too complex and very wide for me. I am looking ahead on your subsequent publish, Iˇll attempt to get the hold of it!
    asics women tennis shoes
    asics 2160 black
    nimbus asics
    asics kanbarra
    kids asics
    asics nimbus 14 mens review
    asics black sneakers
    asics gel tr
    asics gt 2000 vs 2170
    asics wrestling backpacks
    asics miner
    asics shoes outlet
    cheap asic running shoes
    asics gt 2160
    asics turf shoes
    womens asics running shoes reviews
    asics 1130v
    asic nimbus 14
    asics kayano mens
    asics gt 2170 mens running shoes

    asics t054n

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>