Search found 13 matches

by AndreasJunghans
Wed Mar 10, 2021 9:11 am
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: AjaxMaps debug Popup
Replies: 5
Views: 9571

Re: AjaxMaps debug Popup

This looks like a symptom of another problem. Usually, this is what happens: 1) Some basic infrastructure is set up, including logging (default log level is "debug"). 2) The actual map code is loaded, which sets the log level higher. 3) In the onload event, some debug logging is performed ...
by AndreasJunghans
Tue Mar 09, 2021 9:15 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: AjaxMaps debug Popup
Replies: 5
Views: 9571

Re: AjaxMaps debug Popup

Hello Ibrahim,

what's the contents of this popup?

Regards,

Andreas
by AndreasJunghans
Thu Dec 13, 2018 4:56 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: Here Satellite images and PTV Truckattribute
Replies: 7
Views: 15390

Re: Here Satellite images and PTV Truckattribute

Hi Jürgen, you should be able to hook into the satellite layer and check when it's enabled/disabled (which happens in the end when you click on the toolbar buttons): map.getLayer("sat").addEventListener("changeEnabled", function(evt) { alert("Enabled: " + map.getLayer(&...
by AndreasJunghans
Tue May 23, 2017 10:22 am
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: ajax maps infobox - editing possible ?
Replies: 2
Views: 4081

Re: ajax maps infobox - editing possible ?

Hi Andreas, the text in an InfoBox is HTML, so you can put anything there. Here's a small example that makes the text editable (not pretty and only tested in Chrome, but you should get the idea): var infobox = new com.ptvag.webcomponent.map.vector.InfoBox(); var myText = "Test"; function s...
by AndreasJunghans
Fri Mar 31, 2017 1:51 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: html alignment
Replies: 2
Views: 4939

Re: html alignment

Hi there, the alignment only works when the size of the HTML element doesn't change. In your case, the image is loaded asynchronously, so the size changes from 0 to the size of the image after the element is already positioned. You need to specify a fixed width and height for your img element (via a...
by AndreasJunghans
Tue Mar 21, 2017 10:12 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: moving the layout of the zoom slider
Replies: 3
Views: 4163

Re: moving the layout of the zoom slider

Hi there, you need to reset the right edge. Otherwise, the default value is retained, and the layer is anchored both on the left and the right edge (and therefore taking up most of the available space). Just add the following to remove the right anchor: zoomLay.setAreaRight(null); Regards, Andreas
by AndreasJunghans
Tue Aug 09, 2016 3:27 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: Problems with browser controls
Replies: 1
Views: 4741

Re: Problems with browser controls

Another common issue is an initial size of 0 for the control. This can lead to errors in the map scripts, so you should specify a minimum size in your HTML:

Code: Select all

<div id="mapContainer" style="...;min-width:100px;min-height:100px"></div>
by AndreasJunghans
Mon Mar 14, 2016 8:02 am
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: Displaying feature Layers with Ajax Maps
Replies: 3
Views: 8518

Re: Displaying feature Layers with Ajax Maps

Hello,

it should work like this:

Code: Select all

var manager = map.getServerDrawnObjectManager();
manager.addPOICategory("featurelayer", "PTV_TruckAttributes");
"featurelayer" is a predefined data provider in AjaxMaps.

Regards,

Andreas
by AndreasJunghans
Tue Feb 23, 2016 3:30 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: DynamicTooltip on vector.Line (contentProvider issue)
Replies: 3
Views: 7855

Re: DynamicTooltip on vector.Line (contentProvider issue)

Hi Peter, the lines are optimized for fast drawing. If you want to get back the original segments/points (independent of zoom level), you have to modify the Line class. In the API documentation, there's a "Source" link that allows you to download the original JavaScript code for the class....
by AndreasJunghans
Fri Apr 17, 2015 1:10 pm
Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)
Topic: Ajaxmap grouping function
Replies: 2
Views: 6089

Re: Ajaxmap grouping function

Hi there, here's a clustering example with 1000 randomly-generated elements. Regards, Andreas <!DOCTYPE html> <html> <head> <!--[if IE]><script type="text/javascript" src="webcomponent/script/excanvas.js"></script><![endif]--> <script type="text/javascript" src="we...