Copied to clipboard

Flag this post as spam?

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


  • Gert Kjerslev 16 posts 67 karma points
    May 01, 2015 @ 22:26
    Gert Kjerslev
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 01, 2015 @ 23:31
    Jan Skovgaard
    0

    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

  • Gert Kjerslev 16 posts 67 karma points
    May 01, 2015 @ 23:34
    Gert Kjerslev
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 01, 2015 @ 23:49
    Jan Skovgaard
    0

    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

  • Gert Kjerslev 16 posts 67 karma points
    May 01, 2015 @ 23:54
    Gert Kjerslev
    0

    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?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 07, 2015 @ 19:35
    Jan Skovgaard
    0

    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

  • Gert Kjerslev 16 posts 67 karma points
    May 07, 2015 @ 22:18
    Gert Kjerslev
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 07, 2015 @ 22:23
    Jan Skovgaard
    0

    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

  • Vijayendra Bose 2 posts 71 karma points
    Dec 06, 2016 @ 00:05
Please Sign in or register to post replies

Write your reply to:

Draft