After installing the Locator I can't seem to find the datatype for entering geolocations (shops in your demo). Should I re-install or am I misunderstaning the use of this package in some way?
There is already a datatype called "Locator" that has "Locator Geocoder" as a rendercontrol but how does that help me? I guess what I'm really missing (i'm a umbraco newbie) is the Locator document type, right? Why isn't that included and how do I create it?
Just figured out (yeah) that th "X Path" field does not support any sort of xslt extensions.
Now adjusting the, kindly provided, source code to support member addresses. If you want Tim you can make yannicks a contributor on your codeplex repo and i'll commit the code.
New to Umbraco but would like to use the locator package in a project I'm working on. I've installed the package and set it up as per the screencast. The problem is that I don't see the Latitude, Longitude fields when creating a new shop. Do I have to add these as properties to the document type? And if so how? Thanks in advance for any help.
I haven't had much luck in finding a google maps datatype to add as latitude and longitude properties to my 'shop' document type (is that what you were proposing I do?). The only thing that came vaguely near is the package by Darren Ferguson but that appears to be a complete package in its own right.
I was trying to replicate the document type which appears in the screencast i.e. the Latitude and Longitude fields and the Geocode search.
I've added a couple of shops to my site and I can see in the database that their geocoordinates are being saved. However if I type an ambiguous location into my 'find nearest' search form then I get a list of alternatives (as per the search at lab.nibble.be/shops.aspx), but when I select the relevant one I get the 'no results' message.
Is my understanding of how the locator should work wrong (highly likely)?
The package should also install a new google maps rendercontrol, simply create a new datatype and use that as the rendercontrol, then add a new property to your doc type with the alias location and use the newly created datatype as the type
I think I'm not explaining my problems very well. I have done as you suggested and created a new datatype (which I have called 'Locator') and set its render control to 'Locator Geocoder'. I then added this new datatype as a property to my 'Stockist' document type and set its alias to 'location'.
The first issue I have is when I add a new stockist. The form contains just one search field with a button labelled 'Google' but there is no 'Latitude' or 'Longitude' fields as per the screencast at http://lab.nibble.be/. Should these extra fields appear? The search itself works fine and I can find in the database where it is storing the lat, long coordinates. I added a few stockists to test the search on.
The second issue is that when I perform the stockist search on the web site I always get the 'No results found' message. I know that my Google maps key is Ok because if I search for an ambiguous place name I get a list of alternatives to choose from, but even here, if I select one the alternatives and click the 'Ok' button I get the 'No results found' message.
Do you have any suggestions as to what is going wrong?
Updated the macro but still getting the same 'no results' message.Yes, the alias of the stockist document type is Stockist, and everything is published. Incidentally, the version of Umbraco I'm using is 4.5.1 (Assembly version: 1.0.3858.40498) .
can't find geo datatype
After installing the Locator I can't seem to find the datatype for entering geolocations (shops in your demo). Should I re-install or am I misunderstaning the use of this package in some way?
Hi Yannick,
You'll have to add create a new datatype and choose the correct rendercontrol
The rendercontrol should be called "Locator Geocoder"
There is already a datatype called "Locator" that has "Locator Geocoder" as a rendercontrol but how does that help me? I guess what I'm really missing (i'm a umbraco newbie) is the Locator document type, right? Why isn't that included and how do I create it?
Hi Yannick,
You can add the datatype to any doctype you want.
Did you check out the screencast on the package ? http://lab.nibble.be/
Ok think I got it now. Is it also possible to point the xpath to a certain member type location property?
Just figured out I would need an XSLT extension to get the correct nodes. Will the XSLT extension work inside the macro's "X Path" field?
Just figured out (yeah) that th "X Path" field does not support any sort of xslt extensions.
Now adjusting the, kindly provided, source code to support member addresses. If you want Tim you can make yannicks a contributor on your codeplex repo and i'll commit the code.
@Yannicks, done added you to the project on codeplex.
Hi Tim and Yannick,
New to Umbraco but would like to use the locator package in a project I'm working on. I've installed the package and set it up as per the screencast. The problem is that I don't see the Latitude, Longitude fields when creating a new shop. Do I have to add these as properties to the document type? And if so how? Thanks in advance for any help.
Regards,
Jim
Hi Jim, well first make sure you have a google maps datatype, then simply add a property of that type to your document type
Thanks very much Tim! Will do!
Jim
Hi Tim,
Sorry to bother you again.
I haven't had much luck in finding a google maps datatype to add as latitude and longitude properties to my 'shop' document type (is that what you were proposing I do?). The only thing that came vaguely near is the package by Darren Ferguson but that appears to be a complete package in its own right.
I was trying to replicate the document type which appears in the screencast i.e. the Latitude and Longitude fields and the Geocode search.
I've added a couple of shops to my site and I can see in the database that their geocoordinates are being saved. However if I type an ambiguous location into my 'find nearest' search form then I get a list of alternatives (as per the search at lab.nibble.be/shops.aspx), but when I select the relevant one I get the 'no results' message.
Is my understanding of how the locator should work wrong (highly likely)?
Thanks for your help.
Regards,
Jim
Hi Jim,
The package should also install a new google maps rendercontrol, simply create a new datatype and use that as the rendercontrol, then add a new property to your doc type with the alias location and use the newly created datatype as the type
Hi Tim,
Thanks for your time.
I think I'm not explaining my problems very well. I have done as you suggested and created a new datatype (which I have called 'Locator') and set its render control to 'Locator Geocoder'. I then added this new datatype as a property to my 'Stockist' document type and set its alias to 'location'.
The first issue I have is when I add a new stockist. The form contains just one search field with a button labelled 'Google' but there is no 'Latitude' or 'Longitude' fields as per the screencast at http://lab.nibble.be/. Should these extra fields appear? The search itself works fine and I can find in the database where it is storing the lat, long coordinates. I added a few stockists to test the search on.
The second issue is that when I perform the stockist search on the web site I always get the 'No results found' message. I know that my Google maps key is Ok because if I search for an ambiguous place name I get a list of alternatives to choose from, but even here, if I select one the alternatives and click the 'Ok' button I get the 'No results found' message.
Do you have any suggestions as to what is going wrong?
Thanks again for your help.
Jim
Hi Jim,
Yes it's ok that you don't have the lat and long fields, the screencast uses an older version.
For the search results, it's probably the xpath to select the stockists that is wrong, could you show how you' ve entered the locator macro?
The xpath I'm using is below (I copied it from the screencast):
/root/descendant::node [@nodeTypeAlias = 'Stockist']
Ah and are you running Umbraco 4.5 or later?
Then you'll need to use the new schema
so
/root/descendant::* [@isDoc and @nodeTypeAlias = 'Stockist']
I've changed the xpath but I'm still getting the no results message - here's the full macro:
<umbraco:Macro XPath="root/descendant::* [@isDoc and @nodeTypeAlias = 'Stockist']" LocationAlias="" UseAddress="0" AddressAliases="" ResultsXslt="" AddressExtra="" UnitInKm="0" MultipleResultsCaption="" Alias="Locator" runat="server"></umbraco:Macro>
Hi,
Could you try:
$currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and @nodeTypeAlias = 'Stockist']
Also is the alias of your stockist document type Stockist ? And are they published?
Hi Tim,
Updated the macro but still getting the same 'no results' message.Yes, the alias of the stockist document type is Stockist, and everything is published. Incidentally, the version of Umbraco I'm using is 4.5.1 (Assembly version: 1.0.3858.40498)
.
I really appreciate your help with this.
Might be easier if I can take a look, I emailed you some details
Cheers,
Tim
Ah try,
That should do the trick
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.