Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7505931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:05:33+00:00 2026-05-29T22:05:33+00:00

I’m trying to create a map using gmap3.net plugin with Jquery, the script should

  • 0

I’m trying to create a map using gmap3.net plugin with Jquery, the script should then monitor it for movement and if any is seen run xml update based on current location & radius ( proximity ) of the viewable map.

I’ve also had to put in a resize check as this is been used in a single html5 page hidden at first so I’m seeing the map in one tile until you refresh the view…..

All that said I’m running in to a problem around line 75 character 5 ( marked ) with the dev console saying SCRIPT16386: No such interface supported.I would appreciated it if some one can see where I am going wrong as I’m still trying to learn the formatting of this plugin as well as jquery and a few other things too for this app and I think I’m starting to go code blind lol…..

   var mylatLng = new google.maps.LatLng();
    $(this).gmap3({action:'trigger', name:'resize'});
jQuery.noConflict(); jQuery(document).ready(function(){  
//MAP ZOOM (0 to 20)
var zoomLevel = 10,
    gMap = jQuery("#map_canvas"),
//iPad,iPhone,iPod... 
deviceAgent = navigator.userAgent.toLowerCase(),
iPadiPhone = deviceAgent.match(/(iphone|ipod|ipad)/);

//iPad Stuff
if (iPadiPhone) {
    //ADD MAP CONTROLS AND POST ARROWS
    // jQuery("#footer").prepend('<div class="markerNav" title="Prev"    id="prevMarker">&lsaquo;</div><div id="markers"></div><div class="markerNav" title="Next" id="nextMarker">&rsaquo;</div><div id="mapTypeContainer"><div id="mapStyleContainer"><div id="mapStyle" class="satellite"></div></div><div id="mapType" title="Map Type" class="satellite"></div></div>');
} else {//IF NOT iPad
    jQuery('#zoomIn').live('click',function(){
        zoomLevel += 1;
        gMap.gmap3({action: 'setOptions', args:[{zoom:zoomLevel}]});
    });
    jQuery('#zoomOut').live('click',function(){
        zoomLevel -= 1;
        gMap.gmap3({action: 'setOptions', args:[{zoom:zoomLevel}]});
    });
    //ADD MAP CONTROLS AND POST ARROWS
    //jQuery("#footer").prepend('<div class="markerNav" title="Prev" id="prevMarker">&lsaquo;</div><div id="markers"></div><div class="markerNav" title="Next" id="nextMarker">&rsaquo;</div><div id="mapTypeContainer"><div id="mapStyleContainer"><div id="mapStyle" class="satellite"></div></div><div id="mapType" title="Map Type" class="satellite"></div></div><div class="zoomControl" title="Zoom Out" id="zoomOut"><img src="images/zoomOut.png" alt="-" /></div><div class="zoomControl" title="Zoom In" id="zoomIn"><img src="images/zoomIn.png" alt="+" /></div>');
}    
    // jQuery('body').prepend("<div id='target'></div>");

    gMap.gmap3({ 
        action: 'init',
        onces: {
          bounds_changed: function(){
            var number = 0;
            jQuery(this).gmap3({
              action:'getBounds', 
              callback: function (){
              if (!bounds) return;
                // Get Gmap radius / proximity start
                var bounds = new google.maps.LatLngBounds();
                var sw = bounds.getSouthWest(); 
                var ne = bounds.getNorthEast();
                var proximitymeterswne = google.maps.geometry.spherical.computeDistanceBetween (sw, ne);
                var proximity = proximitymeterswne * 0.000621371192;
                // Get Gmap radius / proximity End
              }
            });
          }
        } 
      },{ 
        action: 'setOptions', args:[{
            zoom:zoomLevel,
            scrollwheel:true,
            disableDefaultUI:false,
            disableDoubleClickZoom:false,
            draggable:true,
            mapTypeControl:true,
            panControl:true,
            scaleControl:true,
            streetViewControl:true,
            zoomControl:true,
            //MAP TYPE: 'roadmap', 'satellite', 'hybrid'
            mapTypeId:'roadmap'
        }]
    });
});
// PROBLEM WITH THE FOLLOWING LINE
        $(function(){
// PROBLEM WITH THE ABOVE LINE
            $("#map_canvas").gmap3(
                {
                    action : 'geoLatLng',
                    callback : function(latLng){
                        if (latLng){
                            //$('#resultat-geolocalisation').html('sucess !');
                            $(this).gmap3({action:'trigger', name:'resize'});
                            $(this).gmap3(
                                {
                                action: 'addMarker',
                                latLng:latLng,
                                options:{
                                        icon:new google.maps.MarkerImage("2.png")
                                        },
                                callback: function (){
                                  if (!bounds) return;
                                    // Get Gmap radius / proximity start
                                    var bounds = new google.maps.LatLngBounds();
                                    var sw = bounds.getSouthWest(); 
                                    var ne = bounds.getNorthEast();
                                    var proximitymeterswne = google.maps.geometry.spherical.computeDistanceBetween (sw, ne);
                                    var proximity = proximitymeterswne * 0.000621371192;
                                    // Get Gmap radius / proximity End
                                  },                                                                                      
                                },                                      
                                { action: 'addTrafficLayer'},
                                { 
                                  action: 'addKmlLayer',
                                  url: 'http://www.mykml', 
                                  options:{
                                    suppressInfoWindows: true,
                                    preserveViewport: false
                                  }
                                }
                            );
                        } else {
                            //$('#resultat-geolocalisation').html('cant geolocate!');
                            alert('Location Not Found');
                        }
                    }
                }
            );
        });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:05:34+00:00Added an answer on May 29, 2026 at 10:05 pm

    I ran this through Netbeans and found a duff , for any one following.

    Terran

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am reading a book about Javascript and jQuery and using one of the
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.