A couple of questions on map view....

  1. To get the sample “19_map_view” working correctly I find that I have to have both a scheduler.load statement and a dp = new dataProcessor…/dp.init(scheduler) statements.

Why is this?

  1. How to stop the DataProcessor “window” being dispalyed over the map?

  2. If the lat and lng are not known what needs to be used? Blank values either cause an error or stop all event data being displayed.

Thanks in advance.

I find that I have to have both a scheduler.load statement
Problem confirmed. It is unwanted side effect which will be fixed in next update.

How to stop the DataProcessor “window” being dispalyed over the map?
It appears only if you are using _debug.js

If the lat and lng are not known what needs to be used
You need to provide some value for all involved events. ( some kind of default location )
If you have

scheduler.config.map_resolve_event_location = true;

scheduler will try set lat and lng for each event, where they absent

Fixed version of map extension
support.dhtmlx.com/x-files/sched … p_view.zip

Hi Stanislav,
Thx for the new version.

It still has a problem. If the lat/lng is not known but a geocode-able location is known the new version does not place a marker at that location.

It appears to me that the first logical test in “…scheduler_map_view.js” scheduler.attachEvent for “OnEventChanged” function should be changed from:

“if (!this._latLngUpdate)” to “if (this._latLngUpdate)”
otherwise the setting of “scheduler._latlngUpdate” to true after correct geocode makes no sense to me.

But that produces a stack overflow on IE8 as it seems to just keep recalling the OnEventChanged function for the same event.
(Note that once past the stack overflows the markers are in the correct place.)

Sorry I can’t debug this all the way this time…

Updated version can be taken from
support.dhtmlx.com/x-files/sched … p_view.zip
must resolve the issue with _latLngUpdate

Hi Stanislav,
Again thx for the prompt action. However the zip file does not seem to be there.

Sorry, the correct link
support.dhtmlx.com/x-files/sched … apview.zip

Hi stanislav,
Thx.

With the new version of …mapsview.js IE reports an "invalid value for property " error because one of the geocoder calls does not have convert the scheduler.uid() to a string when setting the language parameter. The other two geocoder calls are fine.

But even with this adjustment, it is not using the event_location to update the lat and lng where the lat and lng are null. And I know the event_location is geocodable.

Be good if we can resolve this last bit because the functionality is really neat.

Hello,

Thank you for your valuable feedback, we appreciate it!

This was fixed. Updated version:
http://support.dhtmlx.com/x-files/scheduler_2_3/dhtmlxscheduler_mapview.zip

As far as i can see it could be happening in one case: your default view is Map view and you loading events from xml file. If it is so when actually coordinates are updated for all events but markers are set when the map view is loaded so they point to the incorrect position.

Map view really supposed to be used with database as it is probably bad idea to query coordinates of all events every time (it takes a lot of time!) and not to store them.

scheduler.config.map_resolve_event_location option was designed for migration - in case you had database with a lot of events with locations but without coordinates. In that case you could turn this option on, wait till all events coordinates are updated in the database then refresh the page and all markers should be correct from that time and on (as coordinates information will be taken from the database).

If you experience another problem please tell your exact scheduler configuration and steps to reproduce, sample would be perfect.

Best regards,
Ilya

Thx for your reply ilya.

I was doing exactly what you wrote - map view as the default.