Reputation: 69
A marker on a static Google Maps is being replaced by the default marker, although an icon
Furthermore, the strange thing is that some markers get displayed correctly depending parameters like latitude/longitude and zoom factor.
The link of the static map with the marker being replaced by a default marker is
http://maps.google.com/maps/api/staticmap?size=600x500&sensor=false¢er=48.135578,11.52429&zoom=7&markers=icon:http://hermes.schf.de/home/[email protected]/Share/office.png|48.135578,11.52429&path=color:red|enc:inxdHyyieAyiFqyJ{_yF~__Btj`GmesAysxF~`dApik|Nkhyj@e`btNt`||@oiu@mjlOki_@xj`BslM}bE
Upvotes: 0
Views: 237
Reputation: 11258
Your marker is out of limits (150x173). See google docs Custom Icons:
The icon parameter must be specified using a URL (which should be URL-encoded). You may use any valid URL of your choosing, or a URL-shortening service such as http://goo.gl. Most URL-shortening services have the advantage of automatically encoding URLs. Icons are limited to sizes of 4096 pixels (64x64 for square images), and the Static Maps service allows up to five unique custom icons per request. Note that each of these unique icons may be used multiple times within the static map.
Upvotes: 1