Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sören Deger 733 posts 2844 karma points c-trib
    Jul 24, 2012 @ 09:11
    Sören Deger
    0

    No map in Backend

    Hello,

    in all our umbraco-websites I can't see the google maps. This worked perfect in the last weeks, but today I see the input-field and the location-field in contentsection and not the google maps... In frontend it works!

    In the browser I see that the .map-div is empty:

    <div id="body_gmapContainer_body_ctl29" class="gmapContainer">
    <div id="body_ctl30">

    <input id="body_ctl31" class="place" type="text" name="ctl00$body$ctl31">

    <input id="body_ctl32" class="button" type="button" onclick="javascript:UmbracoGoogle MapMapDataType.search(this); return false;" value="Search" name="ctl00$body$ctl32">

    </div>

    <div id="body_ctl33">

    <input id="body_ctl34" class="value" type="text" name="ctl00$body$ctl34">

    <input id="body_ctl35" class="button" type="button" onclick="javascript:UmbracoGoogleMapMapDataType.clear(this); return false;" value="Clear" name="ctl00$body$ctl35">

    </div>

    <div id="body_map_body_ctl29" class="map"> </div>

    <input id="body_defaultloc_body_ctl29" class="defaultloc" type="hidden" value="," name="ctl00$body$defaultloc_body_ctl29">

    </div>

    I use in all our websites the Google Maps Data Type version 2.0.3.

    I have deinstall this package and install the new version 2.0.4, but I have the same error!

    This are my settings:
    - ASP.NET 4.0
    - Windows Server 2008 R2
    - Umbraco versions 4.7.1 (Assembly version: 1.0.4281.20201) and 4.7.1.1 (Assembly version: 1.0.4393.24044)

     

    Best regards

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Jul 24, 2012 @ 09:30
    Sören Deger
    0

    I get an javascript-error in backend, if I click my contact-node with the Google Maps Data Type:

    Zeitstempel: 24.07.2012 09:24:15
    Fehler: TypeError: can't convert undefined to object
    Quelldatei: http://mydomain.de/WebResource.axd?d=DdSRclFMa2rImmnLi6mgRX3XiqBjLagqHfBuI5lMSvudORWhc0GligXEDOTuqDJQCwPjdO3v58bnsnU0OGS6j1A2-jsqhFKELSVG3GmMvQjoctay2w9DKJ0AwYN6s02CIMn1FI1qod2qVbiDYwcTHVffdfjPnsFo-NK-hQ9Nwyv2PG91TmvO96w8V1jOHUZeIcZRY6iAacSrx7F9LI7wqA2&amp;t=634787167957500567&cdv=1
    Zeile: 212

    It's this line

    context._maps[id] = new UmbracoGoogleMap.map(id, this);

    in this function:

    guiMap: function () {
            var context = this;
            this._apiLoaded = true;
            jQuery('div.gmapContainer').each(function () {
                var id = jQuery('div.map', this).attr('id');
                context._maps[id] = new UmbracoGoogleMap.map(id, this);
                context._maps[id].render();
            });
        },

     

    Has anyone an solution for this bug?

     

    Best regards Sören

  • Ansar 181 posts 291 karma points
    Jul 24, 2012 @ 09:54
    Ansar
    0

    Have the same problem! Any fixes?

  • Jonathan Saxon 59 posts 86 karma points
    Jul 24, 2012 @ 10:32
    Jonathan Saxon
    0

    Same issue all of a sudden I have tried the fixes with the app setting and upgrade of the data type but still no map in backend.

  • sabueXo 12 posts 32 karma points
    Jul 24, 2012 @ 14:44
    sabueXo
    0

    I have same problem today!!!!!!!

  • Fabio Blardone 79 posts 98 karma points
    Jul 24, 2012 @ 16:19
    Fabio Blardone
    0

    Same problem guys! News? I have to commit a project that is in production with the version 2.0.4. of the package

    Thank's

    Fabio

  • sabueXo 12 posts 32 karma points
    Jul 24, 2012 @ 16:22
    sabueXo
    0

    Maybe Google has changed something in their API????¿??

  • Ansar 181 posts 291 karma points
    Jul 24, 2012 @ 17:03
    Ansar
    0

    Seems like there is other doc types in Umbraco backoffice also got changed recently without any changes in the code!

    Other than the Google map doc type issue mentioned above - all the Multi Node Tree Pickers style/layout got wrong automatically in all my projects last week.. Fixed this buy making change in umbraco_client/tabview/style.css .. but couldnt find a solution for the Google map doc type yet.. 

  • Ansar 181 posts 291 karma points
    Jul 24, 2012 @ 17:14
  • Rory Wilson 2 posts 26 karma points
    Jul 24, 2012 @ 23:13
    Rory Wilson
    4

    Looks like the problem was to do with the context.  It was being set to the window rather than the UmbracoGoogleMapMapDataType as "this" pointing to the wrong place.  So I tried:

     var context = UmbracoGoogleMapMapDataType;
            this._apiLoaded = true;
            jQuery('div.gmapContainer').each(function () {
                var id = jQuery('div.map', this).attr('id');
                context._maps[id] = new UmbracoGoogleMap.map(id, this);
                context._maps[id].render();
            });

    And that now seems to work as a temporary patch.  If you want you can download the dll from https://www.dropbox.com/s/3aj91cuzxn3rcbu/Our.Umbraco.GoogleMaps.zip

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 24, 2012 @ 23:19
    Lee Kelleher
    0

    Hi all,

    Sounds like Google changed something in their API / JavaScript included.  Unless you have added other 3rd-party packages to your installs, I can't see what else would break an existing set-up.

    Do keep in mind that the Google Maps package is completely open-source ... there are no "hidden" features; total transparency.

    @Anz - Any more info about the MNTP CSS issue? (if so, either post new forum thread or CodePlex ticket - thanks)

    Cheers, Lee.

  • Ansar 181 posts 291 karma points
    Jul 24, 2012 @ 23:45
    Ansar
    0

    @Rory - Thank you for the patch.. it worked like a charm..

    @Lee - sure - will do that.. 

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 24, 2012 @ 23:50
    Lee Kelleher
    0

    I've been following this up with my local dev installs, which all my Google Maps have broken too! (yep, I'm in the same boat as you guys!) No idea what has caused this (as in the JavaScript for the data-type hasn't changed in such a long time!!)

    @Rory - thanks for the patch ... not sure if you know how to use Mercurial? I'd love a pull request - so we don't have rogue packages, etc.

    https://bitbucket.org/vertino/google-maps-for-umbraco

    Any other improvements to the JavaScript (or package overall) are more than welcome!

    Thanks, Lee

  • Sören Deger 733 posts 2844 karma points c-trib
    Jul 25, 2012 @ 09:48
    Sören Deger
    0

    @Rory - thanks for the patch! It worked now!

  • Dmitriy Skudnov 39 posts 64 karma points
    Jul 25, 2012 @ 13:13
    Dmitriy Skudnov
    0

    @Rory - thank you for the patch.

  • sabueXo 12 posts 32 karma points
    Jul 25, 2012 @ 13:14
    sabueXo
    0

    Working, thanks!!

  • Douglas Ludlow 210 posts 366 karma points
    Jul 25, 2012 @ 19:57
    Douglas Ludlow
    1

    Please refer to this stackoverflow answer for a more permanent fix.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 25, 2012 @ 20:11
    Lee Kelleher
    0

    @Douglas - Perfect, thank you!

  • Rory Wilson 2 posts 26 karma points
    Jul 25, 2012 @ 21:14
    Rory Wilson
    0

    @Douglas - Brilliant, thank you!

  • Douglas Ludlow 210 posts 366 karma points
    Jul 25, 2012 @ 22:13
    Douglas Ludlow
    1

    Forked and created pull request. First one ever... so bear with me.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 26, 2012 @ 01:09
    Lee Kelleher
    0

    Thanks Douglas, your pull request was all good!

    Pleased to say that the latest release is ready for download: Google Maps DataType 2.0.5

    Cheers, Lee.

  • Dmitriy Skudnov 39 posts 64 karma points
    Jul 26, 2012 @ 06:32
    Dmitriy Skudnov
    0

    Thank you guys. Amazing.!!!

  • Sören Deger 733 posts 2844 karma points c-trib
    Jul 26, 2012 @ 09:08
    Sören Deger
    0

    Yeah, this is an excellent support! Thank you very much!

Please Sign in or register to post replies

Write your reply to:

Draft