Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with displaying map using mura tag #21

Open
deeztek opened this issue Mar 18, 2016 · 4 comments
Open

issue with displaying map using mura tag #21

deeztek opened this issue Mar 18, 2016 · 4 comments

Comments

@deeztek
Copy link

deeztek commented Mar 18, 2016

I'm trying to utilize the MuraLocations using the mura tag like below, but nothing displays. I'm sure I'm doing something wrong. The contentID I'm using was taken from a MuraLocation page under the Advanced tab.

[m]$.muraLocations.dspLocationsMap(name='Some Name', contentID='6A44F396-48A9-4364-95DD7F15C105AC80')[/m]

@stevewithington
Copy link
Owner

@deeztek First, there's no name argument to pass into that function. Also, if you're passing in a contentid, it tries to find any Page \ MuraLocation content items in that area of the site.

I might first try to just use [m]$.muraLocations.dspLocationsMap()[/m] without any arguments first and see what happens.

Otherwise, without an error or a URL to check on, it's hard to give any further direction.

@deeztek
Copy link
Author

deeztek commented Mar 18, 2016

I tried without the name argument and it didn't work either. I did try the [m]$.muraLocations.dspLocationsMap()[/m] by itself and it displays correctly all the locations as it should.

here's the URL in question:
http://dev.visionexperts.com/services/optical-center/

It should display the following MuraLocation:
http://dev.visionexperts.com/locations/havre-de-grace/

Under the following section:

Locations
Havre de Grace Optical Center

2023 Pulaski Highway
Havre de Grace, Maryland 21078
410-942-9470
---> MAP SHOULD DISPLAY HERE <---

@stevewithington
Copy link
Owner

When you pass in a specific contentID, it looks for children of that specific content item, if it's a MuraLocation or MuraLocationsMap. That's why you're not seeing it. Instead, try passing in the parent's contentid. Although, you may get all MuraLocation content items that are children of that section.

Otherwise, you could do a couple of things to get a simple map ... the easiest would be to do this:
[m]$.dspSimpleMap(name='Some Location Name', latitude='someLatitude', longitude='someLongitude')[/m]

You can get the lat/long from your content item's info.

Hope that helps!

@deeztek
Copy link
Author

deeztek commented Mar 19, 2016

I tried the simple map method and it worked fine. However, when I tried to use two simple maps on the same page, it displays the map in the middle of the South Pacific Ocean for both locations:

http://dev.visionexperts.com/services/optical-center/

So, I guess I can't use two simple maps in the same page for some reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants