Search found 13 matches
- Wed Mar 10, 2021 9:11 am
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: AjaxMaps debug Popup
- Replies: 5
- Views: 12487
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 ...
- Tue Mar 09, 2021 9:15 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: AjaxMaps debug Popup
- Replies: 5
- Views: 12487
Re: AjaxMaps debug Popup
Hello Ibrahim,
what's the contents of this popup?
Regards,
Andreas
what's the contents of this popup?
Regards,
Andreas
- Thu Dec 13, 2018 4:56 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: Here Satellite images and PTV Truckattribute
- Replies: 7
- Views: 19401
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(&...
- Tue May 23, 2017 10:22 am
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: ajax maps infobox - editing possible ?
- Replies: 2
- Views: 4924
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...
- Fri Mar 31, 2017 1:51 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: html alignment
- Replies: 2
- Views: 5834
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...
- Tue Mar 21, 2017 10:12 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: moving the layout of the zoom slider
- Replies: 3
- Views: 5182
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
- Tue Aug 09, 2016 3:27 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: Problems with browser controls
- Replies: 1
- Views: 5297
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>
- Mon Mar 14, 2016 8:02 am
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: Displaying feature Layers with Ajax Maps
- Replies: 3
- Views: 9656
Re: Displaying feature Layers with Ajax Maps
Hello,
it should work like this:
"featurelayer" is a predefined data provider in AjaxMaps.
Regards,
Andreas
it should work like this:
Code: Select all
var manager = map.getServerDrawnObjectManager();
manager.addPOICategory("featurelayer", "PTV_TruckAttributes");
Regards,
Andreas
- Tue Feb 23, 2016 3:30 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: DynamicTooltip on vector.Line (contentProvider issue)
- Replies: 3
- Views: 8973
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....
- Fri Apr 17, 2015 1:10 pm
- Forum: PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- Topic: Ajaxmap grouping function
- Replies: 2
- Views: 7040
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...