×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Different maps in different pages?

Different maps in different pages? 13 years 5 months ago #12149

  • Dave
  • Dave's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,

I am creating a website for a group working on conservation/protection of turtles in lakes of British Columbia, Canada. A lot of the group's work is based on observations reported by community members of these lakes so they loved the idea of having something like Hotspots in their website (so people can add turtle sightings). My question is, can I install different maps in different pages of their website?

Thanks

Different maps in different pages? 13 years 5 months ago #12151

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What do you mean with different maps in different pages?

You can create different categories and on the base of them - show different kind of animals???

Different maps in different pages? 13 years 5 months ago #12171

  • Dave
  • Dave's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,

Thanks for your answer. What I meant with "different maps in different pages" is that I would like to create a page for Lake X with its corresponding hotspor map, a page for lake Y with its corresponding hotspor map and a page for lake Z with its corresponding hotspor map, hence each map is for a different geographical location, each one hosted in an individual webpage (e.g. www.website/turtle_sighting/Lake_X ) or alternatively one single page with all the individual maps of lakes X, Y and Z (they are in fact 14 lakes!!)

Thanks again

Dave

PS I can't use a single map covering an area including all the lakes because these are very small lakes far apart from each other.

Different maps in different pages? 13 years 5 months ago #12173

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What about this?
You create several categories and publish the respective hotspots. Then when you create the menu item for the map you have an option to use the hotspots bounds for the center of the map.

So if you have 2 hotspots for lakeA - the map will be centered on those 2 hotspots. When you click on category lakeB - the map will be centered on the hotspots for lakeB?

Play with the categories here: labs.compojoom.com/index.php/hotspots - do you see how the zoom and center changes depending on the markers available in each category? Is this a possible solution for you?

Different maps in different pages? 13 years 5 months ago #12175

  • Dave
  • Dave's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Very clever solution Daniel, thanks a lot for your answer. I am buying Hotspots right now.

I will implement the extension and probably come back for help during the "fine tweaking" stage.

Thanks

Different maps in different pages? 13 years 5 months ago #12176

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Cheers mate,
Just a small advise: DON'T PANIC :D:D:D

Different maps in different pages? 13 years 5 months ago #12196

  • Dave
  • Dave's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,

Thanks again for the quick answer to my previous questions. The money paid for my subscription was very well invested!

One more question:

1) I noticed that whenever I try to add a hotspot on the edge/shore of the lakes, the marker is automatically relocated to the nearest road. I guess this is because the HS tries to determinate an actual address. This is a problem because we want to get reports of the turtles' approximate location on the shoreline so we can go there and check for nests or feeding and basking sites. Can I disable this automatic relocation function? If my explanation is unclear please visit the site and try to add a hotspot on the shoreline of any of the lakes.

coastwildlife.ca/index.php?option=com_ho...t=addspot&Itemid=105

Different maps in different pages? 13 years 5 months ago #12197

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dave,
This will be corrected with the next version. We will use the geocoder to just enter the street address if available and always use the screen coordinates. Check this thing here:
compojoom.com/forum/27-hotspots/52-newbi...r-offroad?p=1#p10979

Different maps in different pages? 13 years 5 months ago #12198

  • Dave
  • Dave's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hey Daniel,

As always you provided a very clear and effective solution.

I applied the second and third steps of your solution (see below). Everything seems to be working now. I do not have installed phpmyadmin so I can't implement step one, nonetheless the off road markers are working. Is there a problem if I don't make the changes suggested in step 1? should I install phpmyadmin and do the changes?

Thanks

Dave

second relevant post:

It takes the coordinates from the reply of the google geocoder. And if google doesn't know a place, it returns the nearest road - that can be several km away....

Do me a favor - try to post a marker in the backend, but before that go to
media/com_hotspots/backend/js/marker.js
line 60
Code:

latitude = place.Point.coordinates[1];
longitude = place.Point.coordinates[0]
replace it with:
Code:

latitude = latlng.y;
longitude = latlng.x;
Now try to manipulate the marker in the backend - is it working?

third relevant post:

For the frontend make the same changes in
components/com_hotspots/viess/showaddhotspot/tmpl/default.php
on line 59 you have:
latitude = place.Point.coordinates[1];
longitude = place.Point.coordinates[0]

Different maps in different pages? 13 years 5 months ago #12199

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Actually I'm not exactly sure if you should do step one. I've asked on google maps group list and it seems that my db schema is ok. So - if it is working don't worry you don't have to do it.
Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.112 seconds