Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!
I have just installed the Google Maps datatype in umbraco 4.5.1. But the datatype isn't showing up. And yes, I have logged out, deleted the cahe and all that... but still no datatype!?
I can see the package in the "Installed packages" folder.
Does anyone know what is going on?
I am pretty sure that you have to create the actual datatype yourself after installing the package.
Right-click on datatypes, choose Create. Give it a name and hit the button. In the render control dropdown select 'Ferguson Moriyama Place', save it and you are done. This way you can create multiple instances of the type.
Hope that helps,Sascha
Year, your right. I saw that a few minutes later...
But it still doesn't work. When I go to Content and want to edit the map, I get a notise that "This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/." But the API key is brand new!
What's wrong? Can you help me out?
Google creates the API key based on the hostname you provide, so 'http://www.mysite.com' will always have the same key. Which is great. If you got the key there is another link on the page (I think below the link to the Google page) where you can enter the key in the config. The config page is a grid that consists of 3 columns:
- the hostname, e.g. 'www.mysite.com' (I think without http, but not 100% sure)- the API key- the default location (coordinates and zoom)
You can add multiple entries, e.g. one for localhost and for the actual site.
Hope that was the info you were looking for,Sascha
I appreseate your help!
I have already done what you suggest, and I have checked in the place.config file if it had the information. It is all in order. But still I get that message... Grrrr
Hm, very odd. Can you please post your place.config file content? What is your url when you get the error? Sorry, just fishing for possible errors here.
I'm only glad you will help me.
I'm getteing the error massage when I - in the umbraco interface - enter the page that sould contain a map, to edit it.
My place.config file contains this:
<?xml version="1.0" standalone="yes"?><root> <record> <domain>http://see.thenoise.dk</domain> <api_key>ABQIAAAA7ByKa5QA1xn1bSwYNwHPkxStxBMa3aPjMDHGo69oWM7gz7L3RRRZLElRzND-aYu_ybg8iQi0s8fpgg</api_key> <default_location>53.430785,-2.960515,12</default_location> </record></root>
I have now tried this great Google Maps locater in another website, but I get the exact same error.
I really hope someone can help me!
sorry I must have overseen the notification for your last post.
Anyway, you definitely don't need to use the 'http://' in front, it's just the hostname 'see.thenoise.dk' that's needed here. I also get a different API key with that domain, however it might be that the keys are different for users, I don't know, anyway here it is:
Can you give that a try please (first just without 'http://', then maybe with the other key?)?
<?xml version="1.0" standalone="yes"?><root> <record> <domain>see.thenoise.dk</domain> <api_key>ABQIAAAA7ByKa5QA1xn1bSwYNwHPkxStxBMa3aPjMDHGo69oWM7gz7L3RRRZLElRzND-aYu_ybg8iQi0s8fpgg</api_key> <default_location>53.430785,-2.960515,12</default_location> </record></root>
I haven't been home in the weekend, so I haven't see your post...
I tried to remove the http://, and now I don't get the error and the map shows up in the umbraco interface! Wohoo! Thank you very much!
BUT I can't make the map search for places!? I type something in, let's say "New York", click "Search" and then nothing happens. Do you know anything about that?
I really appreciate your great help!
Great that at least the map is showing up now! :)
Funnily enough the search doesn't seem to work for me either on my local 4.5.1 installation. I haven't actually build a web site yet in 4.5.1, so I can't say if it might be my faulty local install of if there might be a compatibility issue with 4.5.1. It definitely works like a charm with all our 126.96.36.199 installations.
I observed the net traffic with FireBug and couldn't see any request being made to the Google servers for geocoding the address, basically if you click on search nothing happens at all.