Hi, I am new to umbraco so please excuse me if thist is a silly question. I'm trying toget Angular Google Maps to work,but I just cannotfigure out how toput a mapintoa content page.Is there akind soulwho can tell meorpoint methe right direction?I have createda data type andcan also getitin to adocument type, but I cannot figure outwhat Ineed to do toget a map into aeg a contactpage.What to do?
Aaah ok - I have moved the post into the angulargooglemaps forum then :)
I'm just wondering if you have followed the instructions provided by the package author from the package page when you installed it? It seems one needs to create a certain document type in the content tree to be able to benefit? I must admit that I have not tried the package myself yet though.
Sorry for the late reply - Are you still struggling with this?
Currently I'm not on a machine where it's possible for me to install the package myself and give it a go. But judging from what the author writes about how to setup the datatype/property editor then you should be able to add it on your document type that represents your contact page. If the contact page is just a generic "Page" document type then you will need to add the property editor to this document type.
Then you will be able to pick a location from the rendered map and then save and publish the selected value.
However you'll then need to write some code for rendering the map based on the values returned - Judging from what the author writes on the package page you'll get a comma delimited string containing latitude,longitude and zoom level.
So in razor you'll need to split this string to get the proper values for rendering the map in your view.
Thanks for writing back. I found that it was quicker to insert the google map java script in the header and insert a div with the map/id/formating i using some simple razor/umbraco code. I don't know if this is the "right" way to insert custom code or not but it works ;-) for now.
You're welcome - Sometimes it's just about figuring out what the fastest way to the goal is. Perhaps you'll have some time to digg deeper using the package next time :)
How to get Angular Google Maps working
Hi,
I am new to umbraco so please excuse me if thist is a silly question.
I'm trying to get Angular Google Maps to work, but I just can not figure out how to put a map into a content page. Is there a kind soul who can tell me or point me the right direction? I have created a data type and can also get it in to a document type, but I cannot figure out what I need to do to get a map into a eg a contact page. What to do?
//Gert
Hi Gert
Sounds like you can benefit from this nice package? https://our.umbraco.org/projects/backoffice-extensions/angulargooglemaps - Or is it that package that you're already trying to get to work?
/Jan
That is the package i'm trying to use, but I cannot get it to display. Sorry I did not include that in my question.
//Gert
Hi Gert
Aaah ok - I have moved the post into the angulargooglemaps forum then :)
I'm just wondering if you have followed the instructions provided by the package author from the package page when you installed it? It seems one needs to create a certain document type in the content tree to be able to benefit? I must admit that I have not tried the package myself yet though.
/Jan
I have been following the instructions but I just cannot get the result I'm looking for. How will you insert a google map in eg a contact page?
Hi Gert
Sorry for the late reply - Are you still struggling with this?
Currently I'm not on a machine where it's possible for me to install the package myself and give it a go. But judging from what the author writes about how to setup the datatype/property editor then you should be able to add it on your document type that represents your contact page. If the contact page is just a generic "Page" document type then you will need to add the property editor to this document type.
Then you will be able to pick a location from the rendered map and then save and publish the selected value.
However you'll then need to write some code for rendering the map based on the values returned - Judging from what the author writes on the package page you'll get a comma delimited string containing latitude,longitude and zoom level.
So in razor you'll need to split this string to get the proper values for rendering the map in your view.
Does this make any sense?
/Jan
Hi Jan,
Thanks for writing back. I found that it was quicker to insert the google map java script in the header and insert a div with the map/id/formating i using some simple razor/umbraco code. I don't know if this is the "right" way to insert custom code or not but it works ;-) for now.
/Gert
Hi Gert
You're welcome - Sometimes it's just about figuring out what the fastest way to the goal is. Perhaps you'll have some time to digg deeper using the package next time :)
Happy coding!
/Jan
Hoping this will help someone :-
https://our.umbraco.org/projects/backoffice-extensions/angulargooglemaps/questions/57352-Example-of-a-view-or-a-partial-
is working on a reply...