java - How to show a label(String) over a marker in google maps static api? -
i working on vehicle routing algorithm need show vehicles on maps there driver name on top of label. have done marker part looks this.
however display driver's name on top of every marker. can suggest me way it?
my google maps static api url looks this
https://maps.googleapis.com/maps/api/staticmap?center=26.900,75.800&zoom=11&size=400x400&markers=color:blue|label:driver|&markers=color:green|label:req|26.925571778374632,75.81166033197894|&markers=color:blue|label:others|26.944421737574313,75.8072312248272|26.941722318252367,75.82851178160593|26.909618922760885,75.85079885210592|26.92537722447672,75.85626510000787|26.969253598622025,75.81687986464266|26.933707124740607,75.84999920863306|26.986333832648626,75.88755301718626|26.945330532812793,75.81567681826434|26.942938812152843,75.81989078933901|&markers=color:red|label:req|26.8983489,75.796436|
ps: using java.
i think best can static maps api v2 have different initials , colors different markers. this example.
you may able custom icons too, not seem working far can tell.
the best practice here implement using javascript api v3 instead.
Comments
Post a Comment