Copied to clipboard

Flag this post as spam?

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


  • James Brooksbank 7 posts 20 karma points
    Feb 25, 2009 @ 16:15
    James Brooksbank
    0

    Google Maps Integration

    I'm developing a custom control in Umbraco which has a Google Map
    element on it. When the page loads I get the this api is registered
    under another site warning.

    Please see: http://www.sentricmusic.co.uk/ViewGoogleMap.aspx


    However I know this is not the case, the key is registered under
    www.sentricmusic.co.uk.


    I'm using IE7 but this is definelty not a browser problem. Has anyone
    else had this problem? If so how did you solve it... please do not
    point me toward an umbraco control already available... none of them
    suit my purposes.


    Thanks


    James

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 25, 2009 @ 17:14
    Peter Dijksterhuis
    0

    That error-message is generated by Google. So google must think that the key you entered isn't registered with that domain.
    Just try to create a new key and see if that works.

    HTH,
    PeterD

  • James Brooksbank 7 posts 20 karma points
    Feb 25, 2009 @ 17:28
    James Brooksbank
    0

    Yeah I tried generating a new key with no luck... I'm thinking that something may happen as Umbraco generates the page which may restrict javascript calls to external scripts. But I can only guess at this. The exact same code does work in other sites outside of Umbraco, so not that I want to blame umbraco because I do think it's boss, but I have to figure out exactly what could be blocking the call.

    The problem is exasperated because I have another project to do for Friday which required the exact same thing in umbraco.... bit of a predicament.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Feb 25, 2009 @ 17:37
    Ismail Mayat
    0

    James,

    I have used googlemaps with umbraco numerous times both with usercontrol and xslt macro in v3/v4 without any issues. What was the url you typed into the box on google maps signup? Can you paste it exactly as it is on google. Also probably long shot can you change in your google js script tag

    [code]
    v=2
    [/code]

    to
    [code]
    v=2.115
    [/code]

    or v=2.x

    Regards

    Ismail

  • James Brooksbank 7 posts 20 karma points
    Feb 25, 2009 @ 17:54
    James Brooksbank
    0

    You are a legend my friend. Thank you very much. Just need some infrastructure changes and all should be good. Thank you again.

  • Kim Løwert 130 posts 116 karma points
    Jun 22, 2009 @ 16:30
    Kim Løwert
    0

    Hi James,</p> <p>I know that it is now a couple of months ago, that you entered your question. I have made a Google Maps locater package that you can get here.</p> <p>It contains a backend control and an example xslt and javascript that you can use for reference. It should be fairly simple to use. It is important though to say that because the backend control uses jQuery, it only runs properly in v4. </p> <p>It can be used on a site having multiple domains as well. Just enter your Google API keys in the .config file which the package installs in the /config folder.</p> <p>I hope you can use it, if your own control didn't work out. I'll post the source code soon.</p> <p>Cheers Kim</p>

Please Sign in or register to post replies

Write your reply to:

Draft