Что нового
  • Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

What's new in TMS FNC Maps v2.0

Sascha

Заместитель Администратора
Команда форума
Администратор
Регистрация
9 Май 2015
Сообщения
1,071
Баллы
155
Возраст
51
Introducing the TTMSFNCRouteCalculator component, OpenLayers polyline labels and Google Maps geodesic polylines with the release of

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

v2.0.




Route calculator with map interaction


TMS Software Delphi  Components


The new TTMSFNCRouteCalculator component lets you create and edit routes based on existing directions and geocoding services. Routes can also be imported from GPX and exported to GPX. The TTMSFNCRouteCalculator allows you to create a new route, add, update and remove waypoints or segments. This standalone component can be used to manage routes programmatically, then save or export your routes for later use.

The following directions & geocoding services are supported: Azure, Bing, Google, Here, MapBox

In combination with TTMSFNCMaps routes can be created, edited and displayed by interacting with the map.
Simply assigning a TTMSFNCRouteCalculator to the TTMSFNCMaps component will enable the map interaction as well as extra methods and events.


TMSFNCRouteCalculator1.Active := True;
TMSFNCMaps1.RouteCalculator := TMSFNCRouteCalculator1;

The following mapping services are supported: Google Maps, Here, OpenLayers


The steps below require no additional code at all, this is done by interacting with the map only.
Now the first step is to pick a start location with a single click on the map.

TMS Software Delphi  Components


The second click will set the first waypoint for your route

TMS Software Delphi  Components


Then every subsequent click will add a new waypoint

TMS Software Delphi  Components


Drag and drop an existing segment to insert a new waypoint

TMS Software Delphi  Components


Drag and drop an existing waypoint to a new location
TMS Software Delphi  Components


Waypoints and segments can also be selected and optionally removed from the route

TMS Software Delphi  Components


TMS Software Delphi  Components




OpenLayers polyline & polygon labels



It's now possible to associate a label text with a polyline or polygon in TTMSFNCOpenLayers.


TMS Software Delphi  Components



This feature is currently only available for: OpenLayers

This sample demonstrates how to add a label text to an existing polyline, configure the label's appearance and position, then make sure the polyline is updated on the map.


TMSFNCOpenLayers1.BeginUpdate;
TMSFNCOpenLayers1.Polylines[0].&Label.Text := 'Route from New York to Washington';
TMSFNCOpenLayers1.Polylines[0].&Label.FontColor := gcRed;
TMSFNCOpenLayers1.Polylines[0].&Label.FontSize := 18;
TMSFNCOpenLayers1.Polylines[0].&Label.OffsetX := 170;
TMSFNCOpenLayers1.Polylines[0].Recreate := True;
TMSFNCOpenLayers1.EndUpdate;


Google Maps geodesic polylines


TMS Software Delphi  Components


Another new features is the possibility to display geodesic polylines with Google Maps.

This feature is currently only available for : Google Maps

Just set the polyline's Geodesic property to True to make it display as a geodesic line.


TMSFNCGoogleMaps1.Polylines[0].Geodesic := True;


That's it for this

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

v2.0 update. I hope you'll enjoy all these exciting new features!


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх