We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Some help with CoolLocation extension... anyone used it?

Development and Programming

Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

I’ve got Cool Location working fine, but I’d like to know what I need to change to remove the “map,” “hyb,” and “sat” buttons from the top of the Yahoo! map?

I want it to default to “map” and nothing else as an option.

       
tosz25's avatar
tosz25
11 posts
17 years ago
tosz25's avatar tosz25

Go into pi.coollocation.php and remove this line (should be about 287):

coollocation_map.addControl(new GMapTypeControl());

…and you’re done!

Here’s the scoop on the rest of the controls you can show/hide/tweak for Google Maps.

Hope that helps.

       
tosz25's avatar
tosz25
11 posts
17 years ago
tosz25's avatar tosz25

Oh - and if nothing is specified for type of map, it will simply default to the standard “Map” view. My preference, however, is for the new “Terrain” view that Google has.

If you want this map view, just replace that line 287 with this:

coollocation_map.setMapType(G_PHYSICAL_MAP);

and you’ll have the “Terrain” map.

Or, if you want ALL of the buttons, leave line 287 where it is, and add this line below it:

coollocation_map.addMapType(G_PHYSICAL_MAP);

Enjoy!

       
Andy Harris's avatar
Andy Harris
958 posts
16 years ago
Andy Harris's avatar Andy Harris

Not sure how many use this, but has anyone seen a problem whereby the map in the CP isn’t centered? On mine, the center point auto-fixes to the top left of the preview box. So when you double click to center the map, it goes weird and shifts the center to top left.

Other than that, it works like a charm.

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore
Not sure how many use this, but has anyone seen a problem whereby the map in the CP isn’t centered? On mine, the center point auto-fixes to the top left of the preview box. So when you double click to center the map, it goes weird and shifts the center to top left. Other than that, it works like a charm.

Andy,

Same problem here. I’m using it on my golf site. Page where I’m using it: http://www.kentuckygolfing.com/courses/details/kearney-hill-golf-links

I contacted the developer a while ago about the problem and if I remember correctly they said they couldn’t duplicate the problem, but I’ve got around 300 entries in my database of which have a map tied to them and all 300 do it, so who knows.

       
Austin Siewert's avatar
Austin Siewert
129 posts
16 years ago
Austin Siewert's avatar Austin Siewert

UPDATED

line 523 in the ext.coollocation_extension.php

map.addOverlay(new GMarker(latlng));

to:

map.addOverlay(new GMarker(lat, lng));
       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore

Great find! Thanks for sharing.

       
Luke Hardiman's avatar
Luke Hardiman
109 posts
about 16 years ago
Luke Hardiman's avatar Luke Hardiman

This works a treat, but I find it strange that you can enable it for multiple weblogs, but can’t have it update / geocode from multiple fields. This means I can only use it properly on one weblog at a time..

I’m trying to hack it to fix this at the mo.

       
OutofControl's avatar
OutofControl
164 posts
about 16 years ago
OutofControl's avatar OutofControl

Luke,

Did you get anywhere in getting CoolLocation to work with more than one weblog at a time? I am in the same boat right now. I notice that the CoolLocation website is offline right now.

Thanks.

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
about 16 years ago
Deron Sizemore's avatar Deron Sizemore

I can’t help with the question at hand as I have about zero experience developing extensions, but maybe you’ve not see this? http://experienceinternet.co.uk/resources/details/sl-google-map/

Might be a better option for you since the folks that developed CoolLocation are not supporting it anymore.

       
OutofControl's avatar
OutofControl
164 posts
about 16 years ago
OutofControl's avatar OutofControl

Hi Deron! I had seen this once before but long since forgotten about it. Going to switch over right now. Thank you.

       
OutofControl's avatar
OutofControl
164 posts
about 16 years ago
OutofControl's avatar OutofControl

Small followup:

After just over an hour I have completely removed CoolLocation, installed FieldFrame and the SLGoogleMap fieldtype, modified my settings, updated my weblogs and updated a small pile of custom code I use to display multiple locations on a google map based off of a dynamic xml file.

This is the first time I have used FieldFrame and it is now in more places than I can count on my current project.

Wicked extension, how did I do without it!

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
about 16 years ago
Deron Sizemore's avatar Deron Sizemore
Small followup: After just over an hour I have completely removed CoolLocation, installed FieldFrame and the SLGoogleMap fieldtype, modified my settings, updated my weblogs and updated a small pile of custom code I use to display multiple locations on a google map based off of a dynamic xml file. This is the first time I have used FieldFrame and it is now in more places than I can count on my current project. Wicked extension, how did I do without it!

I feel the same way. Once I installed FieldFrame I fell in love with it. It’s now on majority of my sites. Can do a lot of things with it.

       
Luke Hardiman's avatar
Luke Hardiman
109 posts
about 16 years ago
Luke Hardiman's avatar Luke Hardiman

Me too, I did spend some time getting Coollocation to work for multiple weblogs. A few nasty hacks later I had it up and running. A week later I found SL Google Map for FieldFrame and I had uninstalled Coollocation everywhere shortly afterwards.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.