React at http inputs

hamaldus - February 27, 2008 - 13:44
Project:Geobrowser
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The geobrowser should respond to user inputs, preferably in the http-address itself.

Like this example:
http://www.example.com/?q=geobrowser&lat=47.454&long=10.45&zoom=5&nobrowser

The all-time important ones is the latitude & longitude itself. The other ones are just bonuses.
This way people may link directly to the map while also having the map auto-zoomed into their local area.

#1

phayes - March 3, 2008 - 19:50

Indeed this is a great idea and has been boiling away in my head.. It's on my list!

#2

hamaldus - March 5, 2008 - 13:50

How about putting arguments into line 481-483 of browser.php?

  var begin_lat = "<?php print $_GET[lat]; ?>";
  var begin_lon = "<?php print $_GET[lon]; ?>";
  var begin_zoom = "<?php print $_GET[zoom]; ?>";

If there is a variable in $_GET then override the default setting..

Needs check_plain of course, and some way to decide if the coordinates are decent formatted.
The whole thing crashes if you feed it with something wrong (eg. inserting , instead of .)

#3

hamaldus - March 8, 2008 - 21:51

Please consider collecting my humble 50 quid bounty for getting this feature implemented fast:)

http://drupal.org/node/227215

#4

phayes - March 28, 2008 - 18:36

I accept your bounty if it is still offered (I havent checked the issue cue for a few weeks - so it might be too late).. I will get it done asap in anycase .. by monday?

Patrick

#5

emersonlenon - April 2, 2008 - 00:48

hamaldus,
did you put that before, after or instead of the exisiting lines 481-483?
Thanks

#6

hamaldus - April 4, 2008 - 10:23

phayes, the bounty stands, at US$50 for anyone who can implement this feature, as mentioned here: http://drupal.org/node/227215 . I have mailed you, and If you wanty to implement it, gogo, the bounty is then yours:)

emersonlenon, I thought about replacing the lines with some code, but I do not have the needed skills myself, therefore the bounty:)

 
 

Drupal is a registered trademark of Dries Buytaert.