menduh / gmlibrary

Automatically exported from code.google.com/p/gmlibrary
0 stars 0 forks source link

Script Error when loading the map #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm using the GMLib 1.5.0 with delphi xe3, using a TwebBrowser to display.
Everythink is working fine on many computer, but in a Datacenter I Have the 
following error:

An error occur in the script of this page.
- Line 147
- Caractere : 826
- Error : Error not specified.
- Code 0
- Url

Would you like to continue executing the script.

Anybody can help me ?

thanks,

Original issue reported on code.google.com by st.h...@dial.oleane.com on 20 Apr 2015 at 9:41

GoogleCodeExporter commented 8 years ago
Do you have acces to google maps from IE?

Original comment by cadet...@gmail.com on 22 Apr 2015 at 4:50

GoogleCodeExporter commented 8 years ago
Thanks to answer.

Yes I have acces to Google map from internet explorer.
I also tried to access with some jvascript functions into the page with success.
In fact the megademo from gmlib does not work also... same message.

any idéa ?

Original comment by st.h...@dial.oleane.com on 24 Apr 2015 at 9:24

GoogleCodeExporter commented 8 years ago
can you debug to know the class and method that cause the error?

Original comment by cadet...@gmail.com on 9 May 2015 at 7:36

GoogleCodeExporter commented 8 years ago
Hello,

At delphi side the error arivs during the "DoMap" execution.

In the javascript function le line 147 correspond at thoses statments:

  /* EncodePath */
  function EncodePath(DecodePath) {
    var Points = PointsStrToLatLngArray(DecodePath);
    document.geometrydata.encodedPath.value = google.maps.geometry.encoding.encodePath(Points);
  }
// Here is line 147  
  /* ContainsLocation */
  function ContainsLocation(IdObj, ZIndex, Lat, Lng) {
    document.geometrydata.cntLoc.value = 0;
    var Idx = IndexOf(IdObj, ZIndex);
    if (Idx == -1) {
      document.errordata.errorCode.value = "0";
    } else {
      var LatLng = new google.maps.LatLng(Lat, Lng);
      if ((linkedCompList[i] instanceof google.maps.Polygon) && (google.maps.geometry.poly.containsLocation(LatLng, linkedCompList[Idx]))){
        document.geometrydata.cntLoc.value = 1;
      }
    } 
  }

I saved the file loaded in the TWebBrowser and attach the file as test.html

I wait for your answser.
Thanks a lot

Original comment by st.h...@dial.oleane.com on 13 May 2015 at 8:58

Attachments: