25 Oct 2009 @ 12:10 AM 

This weekend I’ve started working on the last big todo for the 0.4 release of Maps: adding an OSM optimized OpenLayers service. Since this version will see quite some changes for the use of the parser functions, I’m going to elaborate on this.

The main change is that Maps is now able to detect if a given value is a coordinate or not (in which case it’ll be treated like an address). This allowed for letting the display_point function handle both it’s old role, and the one of display_address. Display_point will now auto detect if the default parameter is a coordinate or not, and in case it isn’t, do an attempt to geocode. This behaviour can be ‘overridden’ by using the parameter name coordinate= or address=. The auto detection will also happen when multiple points are passed in display_points, allowing you to pass both addresses and coordinates. The display_address(es) will remain synonymous to display_point(s) for a while, as backward compatibility, but will eventually be removed.

Since this auto detection can also be used for other coordinate/address values, the centre parameter of display_point(s) now also accepts an address instead of only coordinate pairs.

Maps 0.4 will also introduce a new parser function: display_map. This function only accepts one coordinate/address, which will be the map’s centre. Obviously, the same auto detection method is used here.

Posted By: Jeroen De Dauw
Last Edit: 25 Oct 2009 @ 12:10 AM

EmailPermalink
Tags


 

Responses to this post » (None)

 
Post a Comment

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


 Last 50 Posts
 Back
Change Theme...
  • Users » 4744
  • Posts/Pages » 197
  • Comments » 156
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About me



    No Child Pages.