it's possible to add Label above polyline in cesium library?
img: https://i.imgur.com/nLjEE0Q.jpg
Example: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=329258ccdd84cb7a541eb246aa0fd8b3
I think this still an open issue in Cesium. So, you have to wait until they make it possible.
https://github.com/AnalyticalGraphicsInc/cesium/issues/53
https://github.com/AnalyticalGraphicsInc/cesium/issues/4108
Related
I made an OpenLayers map, which has several WMS and WMTS layers.
Of course, I can hide an HTML element of the OpenLayers map by changing the "display" style.
But I noticed that data fetching still happens for each layer.
So what is the elegant way to hide a map in OpenLayers?
PS: I do not want to change the "visible" property of each layer into "false".
Thank you.
olMap.setTarget(null);
Thank you, Mike!
I'm looking for a way to use a custom UIView (not just a custom image) instead of default marker provided by Google Maps iOS SDK. Basically I need a possibility to place my UIView agains proper coordinates of the map, so not necessarily to use markers as they are, just any suitable solution. Any ideas?
There is not currently a way to do this. You can view the relevent feature request (and star it, to show interest) here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5203
The marker only shows an image. So it cannot take a CustomView. Moreover, if your custom view has some sort of button on it there is no way you can track the events from those button.
In simple words the map renders the markers as UIImage.
Is it possible to get on load Map without animation like "jumping" from Africa to specified coordinates?
Currently I use this code to set Map center coordinates:
MyMap.SetView(new GeoCoordinate(Latitude, Longitude), 17);
Mikhail, a quick Google search could provide you this answer.
Anyhow here is a link for what you are looking for.
Is it possible to create custom layers/overlays in google maps?
As an example, would it be possible to have one layer with polygons, another with circles, and a third with markers? and then hide/show these layers individually?
I tried looking at the documentation, but the layers seems to only be a fixed set of predefined layers. And overlays seems to only support image overlays.
Any help on this is appreciated.
I'm not sure if there exists a better way to do this, but I've found a workaround to a similar problem. My example utilizes markers and polylines, but it should be easy to extend the functionality to circles and polygons too.
Link to JSFiddle
Basically it works like this:
Initialize the map.
User selects an option what he would like to see on the map.
Click triggers a method (see HTML part of the fiddle) in the map object that first clears the map and then pushes new overlays on map.
The data that is currently shown on map is stored in arrays, and the map clearing method simply goes through these arrays and checks if there exists any content on map, and removes them if does.
Hope this helps. Cheers!
URL:
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:http://tinyurl.com/2ftvtt6&zoom=12&size=400x400&sensor=false
I have no clue what I'm doing wrong here.
Developer Guide:
API - Custom Icons
...markers=icon:url[stop]&zoom=...
It seems that you defined marker style, but didn't define marker location. It should be:
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:http://tinyurl.com/2ftvtt6|40.714728,-73.998672&zoom=12&size=400x400&sensor=false
I had some problems with the markers, too.
Maybe these hints help other guys
Marker should be max 64x64 pixels in size
long marker filenames can cause issues
always define a marker location - see accepted answer
Another point I wanted to add for future reference. Don't use svg files. They won't be rendered in the final map image.