I’m using MapSuite MVC Edition 7, and working on an AVL Replay application for a client, and the client and I have both noticed several issues.
The first issues is that we are occasionally getting pink map tiles. We are using an OpenStreetMap layer as the base layer. I assume that this is probably related to getting the map data, or rather not receiving the data from the OSM server for those tiles. Is there anyway to prevent this, or to at least mitigate the issue that doesn’t involve redrawing the entire map?
The second issue is that close points, represented by an InMemoryFeatureLayer, suffer from having the labels overlapping and being cut off. We are considering condensing points within a certain distance of one another down into a single point, which should help alleviate the problem, but is there anyway to prevent this from happening?
Questions Regarding Overlapping Labels and Pink Map Tiles
Hi Michael,
The pink tile means there is an error happens in server when the tile request to the server. I agree with your the error seems not happen on the OSM layer but in some layerOverlay I guess. Would you please attached your codes or sample here so that we can have a further look? and which Mvc Edition version you are referring?
For the second issue, would you please try to set the GridSize and OverlappingRule property on the Text Style? like the below:
TextStyle textStyle = new TextStyle("name",new GeoFont("Arial",10),new GeoSolidBrush(GeoColor.SimpleColors.Blue));
textStyle.GridSize = 5; // distance pixel
textStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping;
Hope it helps.
Thanks,
Troy
I am running MVC Edition 7.0 according to the version listed in the dll properties.
Thank you, that helped with the second issue.
Actually, I think the first issue may be with the OSM layer. The pink tiles do not consistently appear, and when they do I have clearly seen my custom layers displaying data. We have several overlays and layers on our map. The OSM base layer, 3 custom layers with data from shapefiles, each in their own overlay and toggleable in the Overlay Switcher, and our data layer in its own overlay. Whenever I’ve encountered the pink tiles, the only layer not rendering properly is the OSM layer. All other layers are either rendering properly on the map, or are disabled at the time.
Hi Michael,
Okay, according to your description, the pink error should happen on OSM layer, we can verify it by commenting out all the other overlays but keep the osm layer only. If this does only happen on OSM layer, would you please let us know how you define the OSM layer? do you use the OpenStreetMapOverlay or use the LayerOverlay and then add the OpenStreetMapLayer into the LayerOverlay?
In order to narrow down the issue, you can try:
1. comment out all the overlays except the osm overlay.
2. run the map and recreate the pink error.
3. right-click on the pink tile and copy the pick tile url, then send the url request on the browser to see if the returned image is not pink.
Other thing is worth to try is you publish your website on machine where the network is better, I am just guessing this is related with network.
If the issue persists, I think you can send us your codes and the pink error screenshot.
Thanks,
Troy