Ticket #7591 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

API update in [8493] breaks old syntax

Reported by: tatadeluxe@gmail.com Assigned to: martin_s
Priority: high Component: GoogleStaticMapMacro
Severity: critical Keywords:
Cc: Trac Release: 0.12

Description

Hi: After changeset [8493] the markers options like color are missing.

Now address and coordinates works fine together:

[[GoogleStaticMap(center="Providencia Santiago Chile",zoom=15,size=400x400,markers="Providencia Santiago Chile"|-33.432749:-70.615852)]]

But if I add optional argument like color, the markers doesn't show up:

[[GoogleStaticMap(center=-33.432749:-70.615852,zoom=15,size=400x400,markers=-33.432749:-70.615852:bluea)]]

The actual features are ok for me, but I think that would be helpful to report this issue.

Regards Javier

Attachments

Change History

08/30/10 21:48:01 changed by martin_s

  • priority changed from normal to high.
  • status changed from new to assigned.
  • severity changed from normal to critical.
  • summary changed from After changeset [8493] markers options are missing to API update in [8493] breaks old syntax.

Thanks for reporting this.

Since [8493] the new API 2.0 of Google is used, which changes the markers syntax (and most likely other syntax as well). See http://code.google.com/apis/maps/documentation/staticmaps/#MarkerStyles for details.

I will have to add an api option to select between the old and new API version in order to allow to support old code.

08/31/10 00:34:41 changed by martin_s

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [8557]) tracgooglestaticmap/macro.py:: Finished support for old (1) and new (2) Google Static Map API. This fixes #7591.

(in reply to: ↑ description ; follow-up: ↓ 4 ) 08/31/10 17:45:21 changed by martin_s

Replying to tatadeluxe@gmail.com:

... But if I add optional argument like color, the markers doesn't show up:

 [[[GoogleStaticMap(center=-33.432749:-70.615852,zoom=15,size=400x400,markers=-33.432749:-70.615852:bluea)]]

The actual features are ok for me, but I think that would be helpful to report this issue.

You can get this to work in the following way the new syntax:

[[GoogleStaticMap(center="-33.432749,-70.615852",zoom=15,size=400x400,markers="color:blue|label:A|-33.432749,-70.615852")]]

This gives you this image.

(in reply to: ↑ 3 ; follow-up: ↓ 5 ) 08/31/10 19:12:30 changed by tatadeluxe@gmail.com

Replying to martin_s:

Replying to tatadeluxe@gmail.com:

... But if I add optional argument like color, the markers doesn't show up:

  [[GoogleStaticMap(center=-33.432749:-70.615852,zoom=15,size=400x400,markers=-33.432749:-70.615852:bluea)]]

The old syntax for markers doesn't work anymore, Backward compatibility is missing, but for me is not a problem.

The actual features are ok for me, but I think that would be helpful to report this issue.

You can get this to work in the following way the new syntax:

 [[GoogleStaticMap(center="-33.432749,-70.615852",zoom=15,size=400x400,markers="color:blue|label:A|-33.432749,-70.615852")]]

This gives you this image.

The new syntax works OK, :D

Regars Javier

(in reply to: ↑ 4 ) 08/31/10 20:25:22 changed by martin_s

Replying to tatadeluxe@gmail.com:

The old syntax for markers doesn't work anymore, Backward compatibility is missing, but for me is not a problem.

Yes, I saw that. This is now fixed in [8571].

The new syntax works OK, :D

Thanks for verifying this.


Add/Change #7591 (API update in [8493] breaks old syntax)




Change Properties
Action