have you seen wicketstuff's google maps integration projects?
-igor
On Jan 16, 2008 5:14 PM, Ballist1c <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> Im working with google maps and what I want to accomplish is have location
> data from our DB backend parsed into the google map for display.
>
> At the moment, what I have achieved is having the google map display
> multiple locations statically defined within the javascript itself, and I
> have my dynamic location data accessible from the panel in which the google
> map is loaded in.
>
> Where I am stopped at the moment is figuring out a way to parse hundreds of
> location coordinates thru to the Javascript. I had a look at manually
> initializing a JS array var, but the format which Googlemaps uses makes it a
> real pain in the arse.
>
> To give you an idea of the javascript for the array variable....
>
> var officeLayer = [
> {
> "zoom": [0, 6],
> "places": [
> {
> "name": "New York Sales & Engineering Office",
> "icon": ["house", "house-shadow"],
> "posn": [40.754606, -73.986794]
> },
> {
> "name": "Atlanta Sales & Engineering Office",
> "icon": ["house", "house-shadow"],
> "posn": [33.781506, -84.387422]
> },
> {
> "name": "Dallas Sales Office",
> "icon": ["house", "house-shadow"],
> "posn": [36.4724385, -101.044637]
> },
> {
> "name": "Cambridge Sales & Engineering Office",
> "icon": ["house", "house-shadow"],
> "posn": [42.362331, -71.083661]
> },
> {
> "name": "Chicago Sales Office",
> "icon": ["house", "house-shadow"],
> "posn": [41.889232, -87.628767]
> },
> {
> "name": "Denver & Boulder Offices",
> "icon": ["house", "house-shadow"],
> "posn": [39.563011, -104.868962]
> },
> {
> "name": "Detroit Sales Office",
> "icon": ["house", "house-shadow"],
> "posn": [42.475482, -83.244587]
> },
> {
> "name": "Santa Monica & Irvine Offices",
> "icon": ["house", "house-shadow"],
> "posn": [33.715585, -118.177435]
> },
> {
> "name": "Phoenix Sales & Engineering Office",
> "icon": ["house", "house-shadow"],
> "posn": [33.411782, -111.926247]
> },
> {
> "name": "Pittsburgh Engineering Office",
> "icon": ["house", "house-shadow"],
> "posn": [40.444541, -79.946254]
> },
> {
> "name": "Seattle Engineering & Sales Offices",
> "icon": ["house", "house-shadow"],
> "posn": [47.664261, -122.274308]
> },
> {
> "name": "Canada Sales Office",
> "icon": ["house", "house-shadow"],
> "posn": [43.645478, -79.378843]
> },
> ]
> },
>
> anyone got any ideas?
> --
> View this message in context:
> http://www.nabble.com/Wicket-and-JAVASCRIPT-variables-tp14902889p14902889.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]