-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol Layer Icons become hidden with textfield #1238
Comments
Hey @asifjavaid, you're setting Adding additional text fields increases the density of the symbols which means that more symbols are going to collide. You can look into setting |
https://docs.mapbox.com/android/maps/examples/symbol-collision-detection allows you to play with the settings that @LukasPaczos describes above. |
Awesome. Thank you. It worked. |
Hi, i wrote these lines of code based on mapbox-android-plugin-annotation-v8:0.7.0' tutorial:
then, i saw my icon in defined latLng, but after i add this line of code: withTextField("my text"), symbol icon disappears and not see any text on map. help me.
|
Hi @mortezahosseinee , thanks for using Mapbox. For Mapbox implementation questions, please contact the Mapbox support team via https://support.mapbox.com/hc/en-us/requests/new?ticket_form_id=360000291231. |
Hi,I have the same problem.Have you solved this? |
@mortezahosseinee @langsmith ,Hi,I have the same problem.Have you solved this:#1238 (comment) |
Hi, yes i solved my problem. |
thanks for your help. i add text font but it didnt work for me. would you share your correct code? |
Hi, as i said before, you need to set text font with any font in font-stack, so if you use main mapbox-sdk, you can add some font from mapbox style, something like this. private void addSymbolToMap() {
} // mapbox sdk checks font array one by one, if reaches any accessible font, take it, so we can set any sequence of defined fonts from font-stack. feel free to tell me if you can't see text on map. like me if you see expected result. @azadeh18 |
@mortezahosseinee |
If you like, share your complete code(Activity or fragment) even your project: M.Hosseini@map.ir |
Hey Morteza, I'm also getting issues with the Symbol. I basically display a Line of LatLngs over the time and after I'm done updating the Line I put a start and an end icon on the map. The start icon appear above the Line, but the end icon appears under the Line. Here's the code: `symbolManager = new SymbolManager(mapView, mMapboxMap, style); symbolManager.setIconAllowOverlap(true); SymbolOptions symbolOptionsFinishFlag = new SymbolOptions() symbolManager.create(symbolOptionsStartFlag); //The start Flag LatLngBounds.Builder builder = new LatLngBounds.Builder(); final CameraUpdate cu = new CameraUpdateFactory().newLatLngBounds(bounds,300);
Any suggestions, where the issues might be? |
@azadeh18 |
Hi,
We are using SymbolLayer Infow Window code from the following url:
https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/dds/InfoWindowSymbolLayerActivity.java
We have noticed that if we placed the symbols/ markers without TextField then the mapbox display more icons on the screen. For example if have we total 10 icons then on a specific zoom level without textfield, we can see 5 to 6 six icons. But with a textField the mapbox show only 2 to 3 icons, means it shows less icons. While we zoom in the map, then rest of the icons also displayed. Why the icons become hidden at the same zoom level? As we zoom out the map, the icons going to disappear, and shown again as we zoom in.
Any idea. Please see the following code.
Thank you.
The text was updated successfully, but these errors were encountered: