Help with google map asset

Hello all,


I am trying to setup google map asset and few locations for a test I am getting following error when I preview





MySource Warning

File: [SYSTEM_ROOT]/core/include/locale_manager.inc Line: 504

Message: Attribute "listing_root_nodes" not found for Asset "council_building_test" (#23991) [SYS0092]



Map showing on a page and a listing , but markers are not on a map. Any idea what this message means?

hi, the MySource Warning is an issue that has been fixed a while ago, i believe from 3.18.7. If you are a Squiz client, you can contact Squiz Support get your system patched directly, it's a one line change. For the missing pin on the map

  1. What asset are you using to represent the locations? Have you configure the keywords for those assets if they are not Google Map Location asset?
  2. What browser are you using? This package has been tested for IE6,7,8 FF2,3 and Safari 3. Can you try another browser (FF or IE) to see whether the map displays the icon? Also are you using custom pin icon?

Thanks for the reply we use 3.18.5 and yes we are a client so I will be calling support, but there are couple of things I don't understand this mapping of keywords for assets other then google_location. I need news items to be listed for example. Does this mean I need to create something like metadata schema to hold latitude and longitude and then assign keywords? or does it have to do with Proxy Asset Type screen?


Also for the most part Google map asset acts as asset listing, let's say I am listing 10 locations on a page with the map how can I put markers for each location on a map at initial load of page? When you click on a link that appears under the map location is pinned and shown, however all locations in my case are close to each other so I want them to be seen on a map when page is loaded.



To answer your questions I have tried it in firefox 3 IE6 and Chrome all show that matrix message I mentioned in a post, I left icon as default. For the record icon does appear when you click on a link.

hi Eric,
If you are using the news item to represent the locations then you need a metadata schema with these fields to hold the information for each location

  1. Latitude
  2. Longitude
  3. Icon_URL - The URL for the marker icon of this location (optional)

    Then in the Google Map asset details screen you would need to populate each keywords field with the according metadata keyword, i.e.

    Latitude Keyword: %asset_metadata_Latitude% (make sure the field name is exactly the same, case matter)

    Longitude Keyword: %asset_metadata_Latitude%

    Icon URL Keyword: %asset_metadata_Icon_URL%

    In order to see all the locations that are close to each other, you would have to change the zoom level of the map, you can do so by going to the details screen of the Google Map Asset, change the zoom level in the text box or click on the blue Globe to open a mini map and change the zoom level dynamically.

    The Matrix warning can only be resolved with a patch, sorry for the inconvenience.

What is a Proxy Asset Type all about?


I have contacted a support now Thanks

This is the description of what the Proxy Asset Type do
“The Proxy Asset Types screen allows you to set up an Asset Listing so that you can select one asset

type to list on the Details screen but return a different asset type in the list. This is mainly used for

shadow assets within MySource Matrix”



You can have a read in details about how to use this feature from the “Asset Listing” manual on this page.

http://matrix.squiz.net/resources/documentation



I haven’t use this feature myself, so I can’t really explain to you in details =).

So the next final step for me to complete this google map module is… how do i make this %globals_get_Lat% value set to latitude value of the form…


I ahve a pop which is nested with asset builder whihc displays a



Name %details-F_short_name%

Email %details-F_name%

Message %details-F_description%



Latitude %details-F_latitude% %globals_get_Lat%

Longitude %details-F_longitude% %globals_get_Lang%



%commit_button%





clicking on commit button after entring all the values creates a google map locaiton asset and dispalys it on google map…



Can some please tell me how do i assign this %details-F_latitude% = %globals_get_Lat%



I dnt want to let user enter value the textbox created by %details-F_latitude%



Is their a way by whihc user just have to click on the google meap and then just enter name ,emai and message… and click commit button… long and latitude will be set in background…



Awaitng for reply… I am almost thier to complete it…

I think this is what you are looking for
You need to remove %details-F_longitude% and %details-F_latitude%, instead, use the code i pasted under, but before you remove them, use firebug or view source to find out the value of your latitude and longitude attribute id on the input field that is replaced by these two keywords (in the code below it is 2242, 2243), so just change them, and add the following into the input field

value="%globals_get_Lat% " "disabled="disabled"



<input name="google_map_location_0_2242" class="sq-form-field" id="google_map_location_0_2242" type="text" size="35"/>

<input name="google_map_location_0_2243" class="sq-form-field" id="google_map_location_0_2243" type="text" size="35"/>



so it will become



<input name="google_map_location_0_xxxx" class="sq-form-field" id="google_map_location_0_xxxx" type="text" size="35" value="%globals_get_Lat% " "disabled="disabled"/>

<input name="google_map_location_0_xxxy" class="sq-form-field" id="google_map_location_0_xxxy" type="text" size="35" value="%globals_get_Lang% " "disabled="disabled"/>



================================

Edit: I think if you put a field as "disabled", then you might not have the data submitted, so try it first to see whether it works, if you don't get your lat long submitted, then you might have to put two dummy text boxes there to show user a disabled input box (where the name attribute should NOT be of "google_map_location_0_xxxx") and then you need a hidden field (x2) with the name of "google_map_location_0_xxxx" and the value of your %globals_get_% keywords.

something like

<input type="hidden" name="google_map_location_0_xxxx" value="%globals_get_%" />

Good luck =)