×

Notice

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

TOPIC: marker offroad

marker offroad 13 years 11 months ago #10962

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

"placing a marker offroad" does not suppose to be a new feature?

When I am placing a mark on a mountain, natural park, any spot far away from roads, after posting, it automatically places the place mark to the closest road.

is it working or I need to setup something somewhere?

marker offroad 13 years 11 months ago #10966

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Placing marker offroad is working, but not you expect it to work - I'll need to make some additional changes.
Read this and do the changes that I propose:
compojoom.com/forum/27-hotspots/52-newbi...-user-problem#p10827
and you should be happy.

Right now the placing marker offroad works only when the location is not known to google and it respond with error message 602.
Normally google knows the location, but not with enough accuracy and they change the coordinates to the nearest road. (which can be few km far away)

marker offroad 13 years 11 months ago #10971

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Thanks but the marker is still out of place.

I just wanna place the marker in the right spot. I don't care about addresses because 90% of times I have to re-write the address because It's wrong.

marker offroad 13 years 11 months ago #10972

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Read the whole thread I suggested and implement all the changes I wrote.

marker offroad 13 years 11 months ago #10975

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

That topic needs an index to know exactly where to go.

It started with "Hotspot problems or user problem?" and I don't know how many different things you have been dealing with.

So far,
- I don't know where to find phpmyadmin. I don't have access to that section. I sent an email to my hosting provider about it.
- I went to media/com_hotspots/backend/js/marker.js line 60
and replace the code:

latitude = place.Point.coordinates[1];
longitude = place.Point.coordinates[0]


with

latitude = latlng.y;
longitude = latlng.x;


The result? Same results.

Is there any other change to make? Sorry If I forget any other change but the pointed thread is a mess.

You should start a clear topic considering how important is to place marker offroad for some people.

Thanks in advance.

Elie

marker offroad 13 years 11 months ago #10979

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, copying everything that is relevant for this here:

first relevant post:
Do the following. Go to phpmyadmin, go to the sql tab and execute the following statement:

ALTER TABLE `vpo_hotspots_marker` CHANGE `gmlat` `gmlat` VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
CHANGE `gmlng` `gmlng` VARCHAR( 15 ) NOT NULL 

jos_hotspots_marker - this is the table that stores the marker. If you have another prefix then jos make sure to change it.

What does it do? Well the coordinate data was stored in float container and only 6 signs are allowed after the comma:
59.6214158 - there you have 7 and mysql is rounding the data - so yep this can result in several hundred meter difference.

Try the changes and let me know if everything works then.


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
latitude = place.Point.coordinates[1];
longitude = place.Point.coordinates[0]
replace it with:
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]


This should be all the necessary changes. Also don't forget to clear the browser cache once you do those changes.

marker offroad 13 years 11 months ago #10990

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Thanks.

Everything is perfectly working now.
  • Page:
  • 1
Time to create page: 0.112 seconds