maps

Dynamically update collection of MapIcons, update process gets out of sync?

两盒软妹~` 提交于 2019-12-12 03:02:09
问题 Im creating UWP app which displays collection of MapIcons on map. MapIcon images are dynamically created from XAML and rendered to bitmap. MapIcon's are updated every few second. There can be around 200 MapIcon on map. The problem is that my MapIcon update code gets somehow out of sync, MapIcon images are not correct for spesific MapIcon/plane. E.g. some planes get previous plane image etc. Im storing my MapIcons to separate _planesDictionary ( Dictionary<string, MapIcon> ), the idea is to

Disabling labels in Windows Phone 8 Map Control

纵然是瞬间 提交于 2019-12-12 02:55:55
问题 Is there any way to disable place names, road names, etc. from showing on the Microsoft.Phone.Maps.Controls.Map control? I'm showing a custom TileSource over the top of the Bing basemap but the labels are still showing through on top of the custom tile source. Ideally I'd like to turn the Bing base map off and replace it with my own but am under the impression that's not possible with this control. So I'm using the next best approach. Thanks in advance for any ideas! 回答1: Even though it's

How do i change the default text in Google Maps API Places Autocomplete

落爺英雄遲暮 提交于 2019-12-12 02:49:02
问题 Is there a way to change the default text: " Enter a location " to 'Enter a Business Name' in Google Maps API Places Autocomplete? 回答1: You change the placeholder attribute on the input element. <input id="search" type="text" placeholder="Enter a Business Name" /> 回答2: In the input field itself, add a value attribute as in: <input id="searchTextField" type="text" size="50" value="foo"> 来源: https://stackoverflow.com/questions/9108499/how-do-i-change-the-default-text-in-google-maps-api-places

Google apps script html service and loading the Google maps javascript api V3

℡╲_俬逩灬. 提交于 2019-12-12 02:38:46
问题 This javascript code on the page won't show the map. any suggestions? Is it the Caja sanitizer thats blocking the execution? Thankx! Cor <!DOCTYPE html> \\To load the APIs. I have found this code on https://developers.google.com/loader/; <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> \\next load then specific API module with parameters and Callback function loadMaps(){ google.load("maps", "3",{"callback" : mapsLoaded()}, sensor

My android application won't run on 2 devices but works on emulator

冷暖自知 提交于 2019-12-12 02:08:57
问题 I'm writing an application that displays Google Map right after the login screen. The Build Target is set to 2.3 and my devices run: 1) Samsung Galaxy Ace (2.3.4) 2) Motorolla Xoom (3.1) I try my app on the Android emulator and it runs fine. Login and map display. When I connected both devices via USB on my computer and selected them to run the application (note: there was an orange warning sign next to the build target when selecting), the login screen appears just fine and when I click

Creating MapView with ContextMenu without Overlays

三世轮回 提交于 2019-12-12 01:53:01
问题 I have a mapview and i wish to display a ContextMenu when longclick but so far the closest solution i've found is here on anddev , the main reason i do not like that method is because any click activate the ContextMenu instead of a long click. Question: Is there a way to display the ContextMenu of a Map without using Overlays? Why? 回答1: This is the approach I used. I created an AbstractMap class which extended MapActivity. From here I then extended from the AbstractMap class to create a Map

Implementation suggestions for creating an expression later used to evaluate the contents of a map in c++?

我是研究僧i 提交于 2019-12-12 01:35:52
问题 My goal is to create a "validator" object for maps. An example of how I'd like to use it: MyValidator my_validator = (IsEmpty("key name 1") && DoesExist("key name 2")) || HasNElements("key name 3", num) Later: if(my_validator.validate(some_map)) { // do something } In this case, my_validator.validate(some_map) would return true if some_map["key name 1"] was empty and some_map["key name 2"] exists, or if some_map["key name 3"] had 3 elements. Any implementation suggestions would be appreciated

Error when adding HTML to google site, Google Maps API

旧街凉风 提交于 2019-12-12 01:32:44
问题 I used the Fusion TablesLayer Wizard to layer three separate fusion tables and put it on my google site HERE. I copied and pasted the HTML code from the wizard into an HTML box on my site. But in the HTML Properties window it gives me this error: 12+9 - 58: failed to load external url js?sensor=false - I also tested this html in W3 schools 'TryIt' and it works fine. How do I get it to work on the site? <!DOCTYPE html> <html> <head> <style> #map-canvas { width:900px; height:900px; } .layer

Leaflet: How to control opacity of Layer Groups?

余生颓废 提交于 2019-12-12 01:23:23
问题 Does some expert know how to change the opacity of each tilemap of a Layer Group by using a HTML-slider input? For example: I've got several tilemaps, which could be switched by using Lealet's Layercontrol button, like here: Leaflet Layer Groups. When using the opacity-slider I want to dim each tilemap, not just one being actually active. For example: I'm dimming map1 to 0.5 Then switching to map2, its opacity should already also be 0.5. And when changing the opacity of map2 to 0.8 with the

Nokia HERE maps: Trigger Public Transport through code

亡梦爱人 提交于 2019-12-12 01:09:40
问题 I want to trigger 'Public Transport' toggle button's action through code. I have searched everywhere but I couldn't find any resource on this. 回答1: You can set the baseMapType of the Display using the standard setter as shown: map.set("baseMapType", nokia.maps.map.Display.SMART_PT) And then you can reset to normal by, map.set("baseMapType", nokia.maps.map.Display.NORMAL) 来源: https://stackoverflow.com/questions/20103764/nokia-here-maps-trigger-public-transport-through-code