-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from wicketstuff/master
Update
- Loading branch information
Showing
7 changed files
with
163 additions
and
9 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...rent/gmap3-examples/src/main/java/org/wicketstuff/examples/gmap/simple/ajax/MapPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:v="urn:schemas-microsoft-com:vml" | ||
xmlns:wicket="http://wicket.sourceforge.net/"> | ||
<body> | ||
<wicket:panel> | ||
<div wicket:id="map" style="margin-left: auto; margin-right: auto; width: 600px; height: 400px;">Map</div> | ||
</wicket:panel> | ||
|
||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
...rent/gmap3-examples/src/main/java/org/wicketstuff/examples/gmap/simple/ajax/MapPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.wicketstuff.examples.gmap.simple.ajax; | ||
|
||
import org.apache.wicket.markup.html.panel.Panel; | ||
import org.wicketstuff.gmap.GMap; | ||
import org.wicketstuff.gmap.api.GLatLng; | ||
|
||
public class MapPanel extends Panel | ||
{ | ||
public MapPanel(String id) | ||
{ | ||
super(id); | ||
GMap map = new GMap("map"); | ||
map.setStreetViewControlEnabled(false); | ||
map.setScaleControlEnabled(true); | ||
map.setScrollWheelZoomEnabled(true); | ||
map.setCenter(new GLatLng(52.47649, 13.228573)); | ||
add(map); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...amples/src/main/java/org/wicketstuff/examples/gmap/simple/ajax/SimpleGMapApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* $Id: GMapExampleApplication.java 1722 2007-02-02 10:03:45Z syca $ | ||
* $Revision: 1722 $ | ||
* $Date: 2007-02-02 11:03:45 +0100 (Fr, 02 Feb 2007) $ | ||
* | ||
* ==================================================================== | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.wicketstuff.examples.gmap.simple.ajax; | ||
|
||
import org.apache.wicket.Page; | ||
import org.apache.wicket.protocol.http.WebApplication; | ||
|
||
public class SimpleGMapApplication extends WebApplication | ||
{ | ||
|
||
|
||
@Override | ||
public Class<? extends Page> getHomePage() | ||
{ | ||
return SimplePage.class; | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...nt/gmap3-examples/src/main/java/org/wicketstuff/examples/gmap/simple/ajax/SimplePage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:v="urn:schemas-microsoft-com:vml" | ||
xmlns:wicket="http://wicket.sourceforge.net/"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
<title>Wicket Examples - GMap Panel</title> | ||
<style type="text/css"> | ||
v\:* { | ||
behavior:url(#default#VML); | ||
} | ||
</style> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
</head> | ||
|
||
<body> | ||
<span wicket:id="mainNavigation" /> | ||
|
||
<p> | ||
As Simple as it may get. | ||
</p> | ||
|
||
<div wicket:id="map" style="margin-left: auto; margin-right: auto; width: 600px; height: 400px;">Map</div> | ||
<a href="#" wicket:id="show">Show</a> | ||
<a href="#" wicket:id="hide">hide</a> | ||
|
||
</body> | ||
</html> |
42 changes: 42 additions & 0 deletions
42
...nt/gmap3-examples/src/main/java/org/wicketstuff/examples/gmap/simple/ajax/SimplePage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.wicketstuff.examples.gmap.simple.ajax; | ||
|
||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.ajax.markup.html.AjaxLink; | ||
import org.apache.wicket.markup.html.link.Link; | ||
import org.wicketstuff.examples.gmap.WicketExamplePage; | ||
|
||
/** | ||
* SimplePage for the wicket-contrib-gmap3 project | ||
*/ | ||
public class SimplePage extends WicketExamplePage | ||
{ | ||
|
||
public SimplePage() | ||
{ | ||
final MapPanel p = new MapPanel("map"); | ||
p.setVisible(false); | ||
p.setOutputMarkupId(true); | ||
p.setOutputMarkupPlaceholderTag(true); | ||
|
||
add(p); | ||
add(new AjaxLink<Void>("show") | ||
{ | ||
@Override | ||
public void onClick(AjaxRequestTarget target) | ||
{ | ||
p.setVisible(true); | ||
target.add(p); | ||
} | ||
}); | ||
|
||
add(new AjaxLink<Void>("hide") | ||
{ | ||
@Override | ||
public void onClick(AjaxRequestTarget target) | ||
{ | ||
p.setVisible(false); | ||
target.add(p); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters