<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Google Maps Widget  in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110907#M72172</link>
    <description>&lt;P&gt;Hi, All!&lt;/P&gt;

&lt;P&gt;Is any tutorials for correct marker adding/modifying in Google Map widget?&lt;/P&gt;

&lt;P&gt;I create 2 buttons in test projects&lt;/P&gt;

&lt;P&gt;1 button for geolocation (I set up geolocation plug-in &amp;amp; and he is work ok)&lt;/P&gt;

&lt;P&gt;2. set up new location&amp;nbsp;&lt;/P&gt;

&lt;P&gt;it's also ok&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But when I try add marker(s) nothing happenns :(&lt;/P&gt;

&lt;P&gt;============================&lt;/P&gt;

&lt;P&gt;google maps API key is and work ok&lt;/P&gt;

&lt;P&gt;that's is my code for button1 &amp;amp; button2&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt; var longit=40.000;
 var latit=-100.000;
     
    
     
     /* button  My Location */
    $(document).on("click", ".uib_w_11", function(evt)
    {
        /* your code goes here */ 
        
           navigator.geolocation.getCurrentPosition(function(position){
                longit=position.coords.latitude;
                latit=position.coords.longitude;
                alert('Latitude: '          + position.coords.latitude          + '\n' +
                      'Longitude: '         + position.coords.longitude                              
                     )});
        
              
         return false;
    });
     
    
        /* button  Button */
    $(document).on("click", ".uib_w_12", function(evt)
    {
        /* your code goes here */ 
        
         var myLatlng = new google.maps.LatLng(longit,latit);
         var mapOptions = {
                        zoom: 4,
                        center: myLatlng
                        }
         
         var marker = new google.maps.Marker({
                position: myLatlng,
                title:"Hello World!"
                });
         
        
         var mymap = googleMaps.getObjectBySelector('#gmap');
        
        
        /* Working code */
         mymap.setCenter(new google.maps.LatLng(longit, latit)); 
       

        /* Not working code */
         mymap.createMarker(marker); 
       
         marker.setMap(mymap);
         
                  
        
         return false;
        
    });&lt;/PRE&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Or, maybe &amp;nbsp;, any can to see how to use functions&lt;/P&gt;

&lt;P&gt;createMarker&lt;/P&gt;

&lt;P&gt;createMarkers&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;from google_maps.js ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for answers &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 12:28:36 GMT</pubDate>
    <dc:creator>Andrejs_V_</dc:creator>
    <dc:date>2016-06-28T12:28:36Z</dc:date>
    <item>
      <title>Google Maps Widget</title>
      <link>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110907#M72172</link>
      <description>&lt;P&gt;Hi, All!&lt;/P&gt;

&lt;P&gt;Is any tutorials for correct marker adding/modifying in Google Map widget?&lt;/P&gt;

&lt;P&gt;I create 2 buttons in test projects&lt;/P&gt;

&lt;P&gt;1 button for geolocation (I set up geolocation plug-in &amp;amp; and he is work ok)&lt;/P&gt;

&lt;P&gt;2. set up new location&amp;nbsp;&lt;/P&gt;

&lt;P&gt;it's also ok&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But when I try add marker(s) nothing happenns :(&lt;/P&gt;

&lt;P&gt;============================&lt;/P&gt;

&lt;P&gt;google maps API key is and work ok&lt;/P&gt;

&lt;P&gt;that's is my code for button1 &amp;amp; button2&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt; var longit=40.000;
 var latit=-100.000;
     
    
     
     /* button  My Location */
    $(document).on("click", ".uib_w_11", function(evt)
    {
        /* your code goes here */ 
        
           navigator.geolocation.getCurrentPosition(function(position){
                longit=position.coords.latitude;
                latit=position.coords.longitude;
                alert('Latitude: '          + position.coords.latitude          + '\n' +
                      'Longitude: '         + position.coords.longitude                              
                     )});
        
              
         return false;
    });
     
    
        /* button  Button */
    $(document).on("click", ".uib_w_12", function(evt)
    {
        /* your code goes here */ 
        
         var myLatlng = new google.maps.LatLng(longit,latit);
         var mapOptions = {
                        zoom: 4,
                        center: myLatlng
                        }
         
         var marker = new google.maps.Marker({
                position: myLatlng,
                title:"Hello World!"
                });
         
        
         var mymap = googleMaps.getObjectBySelector('#gmap');
        
        
        /* Working code */
         mymap.setCenter(new google.maps.LatLng(longit, latit)); 
       

        /* Not working code */
         mymap.createMarker(marker); 
       
         marker.setMap(mymap);
         
                  
        
         return false;
        
    });&lt;/PRE&gt;

&lt;P&gt;====================================================&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Or, maybe &amp;nbsp;, any can to see how to use functions&lt;/P&gt;

&lt;P&gt;createMarker&lt;/P&gt;

&lt;P&gt;createMarkers&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;from google_maps.js ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for answers &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:28:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110907#M72172</guid>
      <dc:creator>Andrejs_V_</dc:creator>
      <dc:date>2016-06-28T12:28:36Z</dc:date>
    </item>
    <item>
      <title>Andrejs,</title>
      <link>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110908#M72173</link>
      <description>&lt;P&gt;Andrejs,&lt;/P&gt;

&lt;P&gt;Take a look at the Geolocation sample app in XDK (PROJECTS: Samples and Demos --&amp;gt; General --&amp;gt; Geolocation Demonstration)&lt;/P&gt;

&lt;P&gt;Pamela&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 19:59:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110908#M72173</guid>
      <dc:creator>Pamela_H_Intel</dc:creator>
      <dc:date>2016-06-29T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Thanks for answer!</title>
      <link>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110909#M72174</link>
      <description>&lt;P&gt;Thanks for answer!&lt;/P&gt;

&lt;P&gt;I took a look at this sample. And I can manage map throought Googla MAPS JavaScript API.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But it is not so "visual" with "hand-make" &amp;lt;div for map&amp;gt; in App Designer enviroment.&lt;/P&gt;

&lt;P&gt;May be any can put some samples for standart operation with widgets?&lt;/P&gt;

&lt;P&gt;Create marker(s), Calculate distance , geocoding &amp;amp;etc. ?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Some simple samples ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 20:23:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110909#M72174</guid>
      <dc:creator>Andrejs_V_</dc:creator>
      <dc:date>2016-06-29T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Andrejs -- our support is</title>
      <link>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110910#M72175</link>
      <description>&lt;P&gt;Andrejs -- our support is limited to helping you with the mechanics of debugging and building Cordova apps with the XDK. We are not staffed to provide samples and support for general HTML5 questions. For that we recommend you use StackOverflow, W3 Schools, HTML5 Rocks, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 22:49:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Google-Maps-Widget/m-p/1110910#M72175</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-07-01T22:49:52Z</dc:date>
    </item>
  </channel>
</rss>

