Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2011-09-07 Thread vittorio
Hi, t3_chris!

I recently worked on integrating wicket and bing maps.
All sources you can find on github
(https://github.com/canwe/wicket-bingmaps-integration)
Maybe this helps you after two years :)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp1889515p3795787.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Christian Reiter

Hi!

I am relatively new to Wicket but impressed by the comfort it offers.
So far I used Perl/ModPerl/JavaScript for my web projects. I am usually 
using Java for my Desktop apps.


For a application which should be created from scratch I am forced to 
use Microsofts Bing Maps (formerly
known as VirtualEarth). Bing Maps is something similar to Google Maps. 
Basically there are only two tasks

which have to performed with Bing.

a) Placing placemarks/pushpins on the map
b) Displaying those placemarks later (the placemarks act as links to 
some documents)


I know that there is an extension for using Google Maps with Wicket, but 
I haven't found any for Bing Maps/VE.


Is it basically possible to integrate Bing Maps with Wicket? I think 
task b) Displaying the placemarks can be done easily.
But how about task a)? I am able to fire an JavaScript function when the 
user places a pusphin but how can I forward

this event to Wicket? Any hints?

Thanks in advance!

Christian

--


Christian Reiter|||c.rei...@gmx.net


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread t3_chris

Thanks for your Response!

As I am quite new to Wicket I don't exactly understand what you mean...

Do you have any sample code? It isn't required to be Bing specific, it would
also be helpful
if you could demonstrate how i can get the result of a
non-Wicket-JavaScript-Function
into the Wicket session.

Thanks!

chris
-- 
View this message in context: 
http://www.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp25367085p25369801.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
ok: non-Wicket-JavaScript-Function is bingJavaScriptFunctionCalledOnYourApp
so:
function bingJavaScriptFunctionCalledOnYourApp(){
/* callback script */
}

How can I get the callback script?
I'm wondering something like:

class BingTask extends AbstractDefaultAjaxBehavior {
@Override
protected void respond(AjaxRequestTarget target) {
System.out.println(task executed!);
}

@Override
public CharSequence getCallbackScript() {
return super.getCallbackScript();
}
}

on your java code:

BingTask taskToAddOnYourMap = new BingTask();
add(taskToAddOnYourMap);
System.out.println(The javascript to call this task: +
taskToAddOnYourMap.getCallbackScript());

the callback javascript that get out on console will look like:
   var
wcall=wicketAjaxGet('?wicket:interface=:0::IBehaviorListener:4:',null,null,
function() {return true;}.bind(this));

You still have to find a way of generate the
bingJavaScriptFunctionCalledOnYourApp calling this callback, it will depend
of how you create (or want to) your components ( getCallbackScript()  was
just publicated to the println output example ). Hope that are what you look
for...

On Wed, Sep 9, 2009 at 2:34 PM, t3_chris c.rei...@gmx.net wrote:


 Thanks for your Response!

 As I am quite new to Wicket I don't exactly understand what you mean...

 Do you have any sample code? It isn't required to be Bing specific, it
 would
 also be helpful
 if you could demonstrate how i can get the result of a
 non-Wicket-JavaScript-Function
 into the Wicket session.

 Thanks!

 chris
 --
 View this message in context:
 http://www.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp25367085p25369801.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread t3_chris

I got on (hopefully) final question:

Is there a more elegant way to pass Data into the
BingTask.respond(AjaxRequestTarget)
method than appending something like data=myValue to the Callback URL and
then decoding it
withing the respond-Method?
-- 
View this message in context: 
http://www.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp25367085p25371523.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
Hi,
for curios, I take a look at wicket-gmap.js on
http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/wicket-gmap.js?r1=4174r2=
that has an similar situation... you can see on line 49 the parameter
passage.
I don't know other way to pass data on this situation, if someone knows one
I'm curios too.


On Wed, Sep 9, 2009 at 4:11 PM, t3_chris c.rei...@gmx.net wrote:


 I got on (hopefully) final question:

 Is there a more elegant way to pass Data into the
 BingTask.respond(AjaxRequestTarget)
 method than appending something like data=myValue to the Callback URL
 and
 then decoding it
 withing the respond-Method?
 --
 View this message in context:
 http://www.nabble.com/Using-Wicket-together-with-Microsoft-VirtualEarth-BingMaps-tp25367085p25371523.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org