JAVA, TWITTER, GOOGLE MAPS, XML

the task:
Java command-line application that user enter location name and programm search using Twitter API the last messages, sent from the location. For example:
search.twitter.com/sea...54472,10km
messages must be in 4 varieties:
1.without sorting
2.sorting by name
3.sorting by date
4.sorting by content
For getting place coordinates using google maps api(XML or CSV).
To create places.csv, where store getting data about place from google maps (using cache).
file places.csv must consist from the string:
place name, xcoord, ycoord, radius_km, alternative name1..., alternative nameN

that`s what I have written
package tw;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.MessageFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Element;
class Map {
public String town;
public String sort;
class Geocoder {
public double x;
public double y;
class Twpost {
public Date date;
public String content;
public String author;
class TwpostComparator implements Comparator<Twpost> {
private String point;
public TwpostComparator(String field) {
this.point = point;
public int compare(Twpost post1, Twpost post2) {
if(point.equals("name")) {
return post1.author.compareTo(post2.author);
else if(point.equals("date")) {
return post1.date.compareTo(post2.date);
else if (point.equals("content")) {
return post1.content.compareTo(post2.content);
return 0;
public class Tw {
public static final String GOOGLE_MAPS_URL = "http://maps.google.com/maps/geo?output=csv&q={0}";
public static final String TWITTER_URL = "http://search.twitter.com/search.atom?geocode={0},{1},{2}km";
public static final String OUTPUT_DATE_PATTERN = "dd.MM.yyyy";
public static final int TWITTER_SEARCH_RADIUS = 10;
* @param args
//Main program that takes a query and executes it
public static void main(String[] args) {
Map map = Query(args);
// Make sure a query was given.
if(map == null) {
System.out.println("Wrong arguments");
System.exit(1);
else {
new Tw().search(map);
private void search(Map map) {
Geocoder geol = Getuserlocation(map.town);
if(geol == null) {
System.out.println("Town " + map.town + " coordinates are not found");
System.exit(1);
List<Twpost> posts = Findmessage(geol);
if(posts.size() > 0) {
if(map.sort != null) {
TwpostComparator comparator = new TwpostComparator(map.sort);
Collections.sort(posts, comparator);
printPosts(posts);
else {
System.out.println("No entries for town " + map.town + " found");
private void printPosts(List<Twpost> posts) {
SimpleDateFormat formatter = new SimpleDateFormat(OUTPUT_DATE_PATTERN);
for(Twpost post : posts) {
System.out.println(formatter.format(post.date) + " "
+ post.content);
private List<Twpost> Findmessage(Geocoder geol) {
NumberFormat format = DecimalFormat.getNumberInstance(Locale.US);
String url = MessageFormat.format(TWITTER_URL, format.format(geol.x),
format.format(geol.y), TWITTER_SEARCH_RADIUS);
List<Twpost> posts = null;
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(url);
doc.getDocumentElement().normalize();
NodeList dates = doc.getElementsByTagName("post");
for (int s = 0; s < dates.getLength(); s++) {
Twpost post = new Twpost();
String dateStr = (String)dates.item(s).getTextContent();
post.date = pdate(dateStr);
Element publish = (Element) dates.item( s );
System.out.println( publish.getFirstChild().getNodeValue() );
post.content=((Element)dates.item(s)).getElementsByTagName("content").
item(0).getFirstChild().getNodeValue();
post.author=((Element)dates.item(s)).getElementsByTagName("name").
item(0).getFirstChild().getNodeValue();
posts.add(post);
catch (Exception e) {
return posts;
private NodeList getElementsByTagName(Document doc, String xpathExpr) {
NodeList result = null;
try {
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
XPathExpression expr = xpath.compile(xpathExpr);
result = (NodeList)expr.evaluate(doc, XPathConstants.NODESET);
}catch (Exception e) {
return result;
private Date pdate(String dateStr) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date d = null;
try {
d = formatter.parse(dateStr);
formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
catch (Exception e) {
return d;
private Geocoder Getuserlocation(String town) {
String url = MessageFormat.format(GOOGLE_MAPS_URL, town);
Geocoder geol = null;
try {
InputStream instream = new URL(url).openStream();
BufferedReader reader = new BufferedReader(
new InputStreamReader(instream));
String[] s = reader.readLine().split(",");
geol = new Geocoder();
geol.x = Double.parseDouble(s[2]);
geol.y = Double.parseDouble(s[3]);
} catch (Exception e) {
return geol;
private static Map Query(String[] args) {
Map map = null;
if(args.length > 0 && args.length <= 2) {
map = new Map();
if(args.length == 1) {
map.town = args[0];
if(args.length == 2) {
map.sort = args[1];
return map;
who wants to add something and make it better?

Similar Messages

  • Using XML file in Java script to create Google Map

    Hello,
    I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path.
    Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that will have pop-up info bubbles with additional info inside (using html), once the marker is clicked.
    Here is the XML script example that is used in the tutorial I am following:
    <markers>
    <marker lat="43.65654" lng="-79.90138" html="Some stuff to display in the<br>First Info Window"
    label="Marker One" />
    <marker lat="43.91892" lng="-78.89231" html="Some stuff to display in the<br>Second Info Window"
    label="Marker Two" />
    <marker lat="43.82589" lng="-79.10040" html="Some stuff to display in the<br>Third Info Window"
    label="Marker Three" />
    </markers>
    ...and this is how it looks when the file is retrieved by the java script and mapped: http://econym.googlepages.com/example_map3.htm
    This is the java script that creates the Google Map. I have emboldened the section of the script that retrieves the data and parses it to create the markers:
    <!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">
    <head>
    <title>Google Maps</title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6GoL8P5zqjQlG5A5uM1ETBSUPozAscB0cY3RG8xEGnZyeom4axRySak889rVpvHYRsV4f9OZZzbboA"
    type="text/javascript"></script>
    </head>
    <body onunload="GUnload()">
    <!-- you can use tables or divs for the overall layout -->
    <table border=1>
    <tr>
    <td>
    <div id="map" style="width: 800px; height: 1200px"></div>
    </td>
    <td width = 200 valign="top" style="text-decoration: underline; color: #4444ff;">
    <div id="side_bar"></div>
    </td>
    </tr>
    </table>
    <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b>
    However, it seems JavaScript is either disabled or not supported by your browser.
    To view Google Maps, enable JavaScript by changing your browser options, and then
    try again.
    </noscript>
    <script type="text/javascript">
    //<![CDATA[
    if (GBrowserIsCompatible()) {
    // this variable will collect the html which will eventualkly be placed in the side_bar
    var side_bar_html = "";
    // arrays to hold copies of the markers used by the side_bar
    // because the function closure trick doesnt work there
    var gmarkers = [];
    var i = 0;
    // A function to create the marker and set up the event window
    function createMarker(point,name,html) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(html);
    // save the info we need to use later for the side_bar
    gmarkers[i] = marker;
    // add a line to the side_bar html
    side_bar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
    i++;
    return marker;
    // This function picks up the click and opens the corresponding info window
    function myclick(i) {
    GEvent.trigger(gmarkers, "click");
    // create the map
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng( 37.251699,-119.604315), 7);
    *// Read the data from testXML2blackpoolformat.xml*
    var request = GXmlHttp.create();
    request.open("GET", "testXML2blackpoolformat.xml", true);
    *request.onreadystatechange = function() {*
    *if (request.readyState == 4) {*
    var xmlDoc = GXml.parse(request.responseText);
    *// obtain the array of markers and loop through it*
    var markers = xmlDoc.documentElement.getElementsByTagName("ConnectoryRecord");
    *for (var i = 0; i < markers.length; i++) {*
    *// obtain the attribues of each marker*
    *var lat = parseFloat(markers[i].getAttribute("lat"));*
    *var lng = parseFloat(markers[i].getAttribute("lng"));*
    var point = new GLatLng(lat,lng);
    *var html = markers[i].getAttribute("html");*
    *var label = markers[i].getAttribute("label");*
    *// create the marker*
    var marker = createMarker(point,label,html);
    map.addOverlay(marker);
    // put the assembled side_bar_html contents into the side_bar div
    document.getElementById("side_bar").innerHTML = side_bar_html;
    request.send(null);
    else {
    alert("Sorry, the Google Maps API is not compatible with this browser");
    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/
    // http://econym.googlepages.com/index.htm
    //]]>
    </script>
    </body>
    </html>
    Here is my delima--
    This is the xml format that I need to use because it can accept the rest of my excel file and loop it through the 14,000+ records to create a functioning xml file. This is just a sample (2 records) of the larger file:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <ConnectoryAug2008>
    <ConnectoryRecord>
         <lng>-117.03683</lng>
         <lat>32.944505</lat>
         <ConnectoryID>1</ConnectoryID>
         <Name>$2.95 Guys</Name>
         <StreetAddress>13750 Stowe Drive</StreetAddress>
         <City>Poway</City>
         <State>CA</State>
         <Zip>92064</Zip>
    <Marker>White</Marker>
         <IndustryGroup>Technical Services</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=1</ConnectoryProfileLink>
    </ConnectoryRecord>
    <ConnectoryRecord>
         <lng>-117.272843</lng>
         <lat>33.13337</lat>
         <ConnectoryID>2</ConnectoryID>
         <Name>(GLDS) Great Lakes Data Systems</Name>
         <StreetAddress>5954 Priestly Drive</StreetAddress>
         <City>Carlsbad</City>
         <State>CA</State>
         <Zip>92008</Zip>
    <Marker>Orange</Marker>
         <IndustryGroup>Technology</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
    </ConnectoryRecord>
    </ConnectoryAug2008>
    This is the tutorial where I found the formatting techniques to successfully create the large xml file that will format/convert my excel file properly: http://www.mrexcel.com/tip064.shtml
    These variables should appear as html in the info bubble:
    <ConnectoryID>2</ConnectoryID>
         <Name>(GLDS) Great Lakes Data Systems</Name>
         <StreetAddress>5954 Priestly Drive</StreetAddress>
         <City>Carlsbad</City>
         <State>CA</State>
         <Zip>92008</Zip>
    <IndustryGroup>Technology</IndustryGroup>
         <ConnectoryProfileLink>http://connectory.com/search/profile_view.aspx?connectoryId=2</ConnectoryProfileLink>
    The "Marker" variable instructs Google Maps to label the marker with a particular color. I will be so grateful to the person(s) that helps me get through this wall that I have been hitting for a long time. It's very difficult without having the luxury of peers who know about these types of issues.
    Thank you!!

    Here is the relationship: They both contain geographic coordinates that produce a point on a map. I will use the rest of the information in the second xml file (company name, address, link, etc.) to produce the information for the bubble that will pop up once the marker is clicked.
    My problem is that I need to try to keep the second xml file in a relatively similar format, so the rest of my records will still be accepted. If I had a smaller amount of records I could place them directly into the javascript, but because there are so many records, I need to use an xml file that can be retrieved by the java script. I chose to use the second type of xml file because I can easily copy and past the 14,000+ records that are now in excel document.
    After the xml issue is corrected I need to rework the javascript that is now emboldened so that it will read the new xml file correctly. I included the first xml file so that the readers will understand what type of xml format is currently being used to produce the markers in the tutorial map.

  • Issue with mapping XML to Java using SAX API

    I am using SAX API to Map XML Documents To Java. Is it possible to differentiate the elements based on the attribute rather than localname or element name in SAX API? because I am having the below xml structure. In SAX API we are processing the element values based on start/End Element name.
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <result name="response">
    <doc>
    <str name="art_id">192201910</str>
    <str name="title">test</str>
    <arr name="author">
    <str>Darrell Dunn</str>
    <str>William </str>
    </arr>
    <arr name="tax">
    <str>113243335</str>
    <str>233454666</str>
    </arr>
    </doc>
    <doc>
    <str name="art_id">192201911</str>
    <str name="title">test2</str>
    <arr name="author">
    <str>Darrell Dunn1</str>
    <str>William 1</str>
    </arr>
    </doc>
    </result>
    </response>
    I want to map the elements based on attributes such as
    classobj.art_id, classobj.title, classobj.tax[]. I have wriiten code below, but I am not getting the proper result.
    import org.xml.sax.;
    import org.xml.sax.helpers.;
    import java.io.;
    import java.util.;
    import common.;
    public class XmltoObjectHandler extends DefaultHandler{
    /* Creates a new instance of XmltoObjectHandler */
    public XmltoObjectHandler() {
    // Local SolrDocument object to collect
    // document XML data.
    private XmlDocument doc = new XmlDocument();
    // Local list of solr documents items...
    private Vector xmlDocuments = new Vector();
    // Local current solr document reference...
    private XmlDocument currentSolrDoc;
    // Buffer for collecting data from
    // the "characters" SAX event.
    private CharArrayWriter contents = new CharArrayWriter();
    // Override methods of the DefaultHandler class
    // to gain notification of SAX Events.
    // See org.xml.sax.ContentHandler for all available events.
    public void startElement( String namespaceURI,
    String localName,
    String qName,
    Attributes attr ) throws SAXException {
    if ( localName.equals( "doc" ) ) {
    currentXmlDoc = new XmlDocument();
    solrDocuments.addElement( currentSolrDoc );
    if( localName.equals("str"){
    for ( int i = 0; i < attr.getLength(); i++ ){
    if("art_id".equals(attr.getValue(i))){
    currentSolrDoc.art_id = contents.toString();
    if("title".equals(attr.getValue(i))){
    currentSolrDoc.title = contents.toString();
    public void endElement( String namespaceURI,
    String localName,
    String qName ) throws SAXException {
    public void characters( char[] ch, int start, int length )
    throws SAXException {
    contents.write( ch, start, length );
    public Vector getxmlDocuments() {
    return solrDocuments;
    public static void main( String[] argv ){
    System.out.println( "Example4:" );
    try {
    // Create SAX 2 parser...
    XMLReader xr = XMLReaderFactory.createXMLReader();
    // Set the ContentHandler...
    XmltoObjectHandler ex4 = new XmltoObjectHandler();
    xr.setContentHandler( ex4 );
    // Parse the file...
    xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));
    // Display all documents items...
    XmlDocument i;
    Vector items = ex4.getxmlDocument();
    Enumeration e = items.elements();
    while( e.hasMoreElements()){
    i = (XmlDocument) e.nextElement();
    System.out.println(i.art_id+"\n");
    System.out.println(i.title+"\n");
    }catch ( Exception e ) {
    e.printStackTrace();
    Can anybody help me how to process this type of xml. Is there any other way we can do this? I am trying for two days. It is a big deadlock for me. any help greatly appriciated. Thanks in advance.

    I added my code inside code tags...
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    import java.util.*;
    import common.*;
    public class XmltoObjectHandler extends DefaultHandler{
        /** Creates a new instance of XmltoObjectHandler */
        public XmltoObjectHandler() {
        // Local SolrDocument object to collect
        // document XML data.
        private XmlDocument doc = new XmlDocument();
        // Local list of solr documents items...
        private Vector xmlDocuments = new Vector();
        // Local current solr document reference...
        private XmlDocument currentSolrDoc;
        // Buffer for collecting data from
        // the "characters" SAX event.
        private CharArrayWriter contents = new CharArrayWriter();  
        // Override methods of the DefaultHandler class
        // to gain notification of SAX Events.
        // See org.xml.sax.ContentHandler for all available events.
        public void startElement( String namespaceURI,
                String localName,
                String qName,
                Attributes attr ) throws SAXException {
              if ( localName.equals( "doc" ) ) {
                currentXmlDoc = new XmlDocument();
                solrDocuments.addElement( currentSolrDoc );
              if( localName.equals("str"){
                   for ( int i = 0; i < attr.getLength(); i++ ){               
                    if("art_id".equals(attr.getValue(i))){
                             currentSolrDoc.art_id = contents.toString();
                        if("title".equals(attr.getValue(i))){
                             currentSolrDoc.title = contents.toString();
        public void endElement( String namespaceURI,
                String localName,
                String qName ) throws SAXException {      
        public void characters( char[] ch, int start, int length )
        throws SAXException {       
            contents.write( ch, start, length );       
        public Vector getxmlDocuments() {
            return solrDocuments;
        public static void main( String[] argv ){       
            System.out.println( "Example4:" );
            try {          
                // Create SAX 2 parser...
                XMLReader xr = XMLReaderFactory.createXMLReader();           
                // Set the ContentHandler...
                XmltoObjectHandler ex4 = new XmltoObjectHandler();
                xr.setContentHandler( ex4 );           
                // Parse the file...
                xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));          
                // Display all documents items...
                XmlDocument i;
                Vector items = ex4.getxmlDocument();
                Enumeration e = items.elements();
                while( e.hasMoreElements()){
                    i = (XmlDocument) e.nextElement();
                    System.out.println(i.art_id+"\n");
                        System.out.println(i.title+"\n");
            }catch ( Exception e ) {
                e.printStackTrace();
    }

  • Customize -java-wsdl-mapping.xml with EJB3 web service

    Using OC4J 10.1.3, I have an EJB that I am exposing as a web service using JSR-181 annotations. Is it possible to customize the generated <ServiceName>-java-wsdl-mapping.xml file? I tried putting my own version in META-INF/ of my ejb jar, but it didn't seem to pick up on it.

    I was told the product manager and/or developers from Oracle watched this board. Doesn't anyone have a response to this?

  • Google map simulation in java

    Hi guys, i want to simulate my own version of google map but would like to design it in such a way that the geographical data is kept separate from the actual implementation functionality e.g use the data for different areas instead of me rewriting the code. Now, i have been searching the web and have noticed that java has a Class GeoData (http://flickrj.sourceforge.net/api/com/aetrion/flickr/photos/GeoData.html) which can be used to create the long/latitude but what i would like to know is are there any tutorials available that one could recommend me to show how to use this class? As again, i idealy would like to keep these components separate.
    Your input would be so greatful guys.
    Thanks

    Oh i see cool. I've been browsing the net have found this link http://geotools.codehaus.org/ which seems to be what looks like some sort of IDE for map creation. Has anybody here ever used this before and what are you thought about this?
    Edited by: nvidia1 on May 20, 2008 12:31 PM

  • Google Maps in a Java Application

    I currently have a setup involving MapViewer where we generate maps and display the images within a desktop Java application. I was asked to look into adding Google imagery to these maps. I know that you can use the Google map tiles in a javascript based map (discussed on the Oracle Maps blogspot), but I was wondering if anyone had attempted doing this in just a client side application?
    Basically has MVGoogleTileLayer been implemented in the Java library for MapViewer or is there something I can do to implement the same functionality in the same way? Any pointing in the right direction or confirming this either way would be greatly appreciated. Thank you.

    In Google's terms of service they say that the following would violate the license restrictions:
    "10.8 use the Static Maps API other than in an implementation in a web browser;"
    Am I just misinterpreting this?
    I would still need to show a layer from my database on top of any imagery I get from Google so I would still need to get the Google Static Map request to run through MapViewer. We currently have a few other services where we are using them as WMS themes and that's kind of what I was trying to explain that I was looking for.
    So I guess two follow up questions: 1) Is it possible to use the Google static maps to accomplish this 2) Is it legal to use the maps to accomplish this?

  • I cannot use Google Maps directions with Firefox. I get java void when I click on directions in Google Maps.

    I can use Internet Explorer to get directions with Google Maps but when I use Firefox 3.6 the task bar reads java void and no directions are displayed. How do I fix this?

    FF 7.0.1 SafeMode
    Mac OS 10.6.8
    Search for one location, Directions, enter 2nd location, Get Directions.
    Map shifts & displays correct area for route, but Loading appears and stays, route never appears.
    Works correctly in Opera, Safari & Chrome on same machine.

  • XML parser for Google maps

    Hi every one,
    I am trying to create a special format of an XML file for Google maps, I have a VI who takes the NMEA and sort out the parameters I need to create a track on the map, but I have try to make the XML file in LV but I get not right format of the XML.
    This is how the file should look like :
    file  data.zip
    And how it looks like when I use LV :
    file  LV_data.zip
    Hope to try to find a solution
    Thanks
    Lars Olov Jonsson
    Space Electronics Engineer
    Near Space Technology
    WiFi Guru, proud holder of world record in WiFi, 421 Km @ 2 mbit/s
    Attachments:
    xml parser google maps.vi ‏12 KB
    data.zip ‏1 KB
    data_lv.zip ‏1 KB

    You should check out EasyXML from JKI -- disclaimer: I work for JKI
    There's a great example of how to generate a Google Earth KLM file (somewhat similar to the Google Maps format).

  • Using Google Map from Java FX

    We generally use GMAP2 object to display an Map in through java script .But we are not sure how we can integrate GMAP with java FX.
    If anyone has done anything on it please let us know.
    Thanks In Advance

    Can i get a little more detail information on this.We have a complete setup of Google map which is done through java script.How can i reuse the same component in java FX.

  • Calling Java Script to open a Map (Like Google Map) from Oracle Forms 10g

    Hello,
    We are on Oracle EBS rel 12, Forms 10g. We have a requirement of calling a Custom Map application (Like Google Maps) from Oracle Forms 10g.
    When the user enters the address like town, city, country etc and clicks on a button there should be a call to this Google Map like application which will pass the co-ordinates (Latittude, Longitude) to the map and shows the place on it. If the user selects a different location on this maps and closes the window the parameters co-ordinates (Latittude, Longitude) should be back in the calling form and this new location should replace the original location.
    I appreciate if I can get some help for the above requirements.
    Thank you.
    GM

    Thank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
    Example:
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
    I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
    Regards
    GM

  • Loading external div resp. java script resp. google maps resp. php in adobe edge animate

    Hi there,
    I made some nice webpage with adobe edge, and additionaly I would like to implement store finder made with google maps. Any idea how I should do this?
    Here the website:
    http://www.heelbopps.com
    And here the map:
    http://www.heelbopps.com/maps/map.php
    What I intend to to is to make a div between contact and disclaimer and load map.php in this div.
    Here how does the look the file: map.php
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <title>Google Maps AJAX + mySQL/PHP Example</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
        <script src="http://maps.googleapis.com/maps/api/js?sensor=false"
                type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
        <script src="storeLocator.js" type="text/javascript"></script>
              </head>
              <body style="margin:0px; padding: 0px;" onload="load()">
                        <div>
                                  <input type ="text" id="addressInput" size="10"/>
                                  <input type="button" onclick="searchLocations()" value="Suche"/>
                        </div>
                        <div><select id="locationSelect" style="width:100%; visibility: hidden"></select></div>
                        <div id="map" style="width: 100%; height: 80%"></div>
              </body>
    </html>
    How can I implement this code in adobe edge? Please help, because I am clueless, and it has to be done today.
    Many many thanks in advance...
    Stanko

    Dear Stanko, did you get my private message about fixing top menu ?
    Zaxist

  • Google maps have some kind of Java problem, won't load?

    There is some kind of problem with Google maps suddenly not loading. I tried Google's fixes, but it's still bad. They say Skype figures into it, but I don't have Skype. This problem started on mine suddenly yesterday. I start to type a location in the box, and a little yellow "loading" box appears at the top, and then NOTHING HAPPENS.
    Anybody know about this?
    Thanks...

    Thank you for that input. In my little room here, it's hard to tell which wire or cable is what, even tho I installed this stuff a couple years ago. I have Comcast Broadband, which has been real reliable.
    This problem started just yesterday, and I don't THINK it's what you're idea is. I'll wait a while to see what else might happen on this.
    Thank you.

  • On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being directions from here, the right click does work on Google map when using Safari

    On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being "directions from here", the right click does work on Google map when using Safari

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Safari 8 hover does not work over google map location pins

    OS X 10.10.1,   Safari 8,  Java 8-25
    I have always had little odd things not work when using safari on a large % of websites I visit,  the latest issues are
    no response when hovering over google map location pins, travel site calendars not opening or responding to mouse, drag and drop
    show the item being dragged several inches away from the actual pointer, some links don't respond, missing items
    or odd layout with print or pop ups going off the screen on some website pages, zooming in and out does not help. I have none
    of these issues when using Firefox or Chrome. Been using Safari for 4 years now.

    Have you tried a PRAM and an SMC reset? They're longshots, but don't take long to try.
    PRAM: http://support.apple.com/kb/HT1379
    SMC: http://support.apple.com/kb/HT3964
    Have you run Apple Diagnostics from the disc(s) that shipped with the computer?
    Since the problem occurs in all browsers, it still sounds like a video hardware or video RAM or maybe a software issue having to do with layers and rendering.
    The map layers aren't getting rendered, or if rendered, aren't getting displayed.
    Do you have any browser add-ins? Pop-up blockers?
    Since you have two video chipsets, it's possible that might be related to the issue.
    This non-Apple website talks about switching between chipsets on the various MacBook models so equipped, and points to a free 'donationware' program for the menubar that lets you easily switch between chipsets:
    http://www.everymac.com/systems/apple/macbook_pro/macbook-pro-unibody-faq/macboo k-pro-unibody-switching-between-graphics-processors.html
    Trying to think of other software that might help pinpoint the problem, does the iPhoto Slideshow 'Shatter' template work? Working properly, it 'shatters' images into several color layers and rotates them in and out to build and deconstruct photos.

  • Google video and google maps?

    do either of these work on ipod touch, i know the iphone has a google maps app.
    but can u just go to www.maps.google.com on the ipod touch and it will work?
    wut about google video?

    Correct, they don't need Java. They are 100% Javascript/images based. Might be some jsp on the server end, but nothing on the user end.
    Now than, Google maps need double click and hover events to work right. Because of the Touch's interface, neither of these events are available. So maps are crippled, at best.
    If you look at the map at http://www.BoyneUSAResorts.com, it is a sample of some linking that does actually function. What you can't do is zoom in, or drag the map. Oh well, small price to pay. And this is why the Google Map app is on the iPhone.

Maybe you are looking for