+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / show google map on event detail page

show google map on event detail page

4 posts, 0 answered
  1. Stephen
    Stephen avatar
    70 posts
    Registered:
    09 Jun 2009
    16 Nov 2010
    Link to this post
    I need to show google map on the event detail page for a project, but got a javascript error: _eventView.showLocationPin is undefined. I cannot generate the same error for other projects though. Can you help me out? Thanks.

    Error: _eventView._showLocationPin is undefined
    Source File: http://xxxx.xxxxxxxx.ca/WebResource.axd?d=p9RWQOtQssedlENYvmqOpRkRPbF5uGIkWOcwOPqBicbnTcTYSapTh63FuzeRZboMu2fkSoKdf5gSlf-tl5NsiVDvxJ_0ZdlaRf5idrvGnGV58KGSYvgykT6ASiwXKyQMIdSdYQ2&t=633853990080000000
    Line: 34
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Nov 2010
    Link to this post
    Hi Stephen,

    As for the '_showLocationPin' error, showLocationPin is a variable from EventsView.js. It is used by DrawMap function which has one parameter  - mapIndex. The error you are getting could be thrown only if you are using ExpandableListMaster.ascx external template for EventsView control. Otherwise the  DrawMap function is called internally from EventsView control in SetItemMetadata method. Note that this function is used to show Geomapping data - Geograpthic map for Events.

    The problem could be result of some interaction with other java script code you have on a page, so other control like Images and Docuements module in mode Lightbox. You can also test in different browsers.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Stephen
    Stephen avatar
    70 posts
    Registered:
    09 Jun 2009
    16 Nov 2010
    Link to this post
    I got the javascript error fixed. Thanks.

    One more thing I noticed that if I add a linkbutton on ContentViewSingleItemView.ascx, the click event won't fire up. If I comment out the following line (for google map), the button click works fine. Can you help me out? I need to add a button on the detail page which is used to add the event to outlook. Thanks.

    <asp:Panel ID="mapPanel" runat="server" CssClass="sf_eventMap"></asp:Panel>
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Nov 2010
    Link to this post
    Hello Stephen,

    I am not able to reproduce this issue locally and there should not be a problem if you add the control outside of the panel. Generally you cannot put a control inside the panel, because it will be overlapped by the map image. I am sending you a short video.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered